Free Support Forum - aspose.com

1st line header?

Hi, thanks the quick reply the other question !

I found a example on the forum, and I would like to know if it is possible to export the first line as column name? Using a piece of code below:

DataTable dt = wb.Worksheets[0].Cells.ExportDataTable(0, 0, wb.Worksheets[0].Cells.MaxDataRow, wb.Worksheets[0].Cells.MaxDataColumn);

Thanks a lot!

Hi,

Thanks for considering Aspose.

Well, yes, it is quite possible, if you want to export the first row into the datatable, you may use:

DataTable dt = wb.Worksheets[0].Cells.ExportDataTable(0, 0, 1, wb.Worksheets[0].Cells.MaxDataColumn+1);

Thank you.