Question: how to export datatable data to pdf in asp.net?
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;