Question: how to export data from datatable to pdf in c#?
Answer: private void GeneratePDF(DataTable dataTable, string Name) { try. { string[] columnNames = (from dc in dataTable.Columns.Cast<DataColumn>() select dc.ColumnName).ToArray(); int Cell = 0; int count = columnNames.Length;