Excel Header

Hi,

I am using aspose library for reading a excel file and further processing.

My Issue is how can i validate Header. i.e How would i come to know if Column header is present or not in the excel file.

Any code snippet will be of great help... C#

Hi

Thanks for your request. I guess you are using Aspose.Cells to read Excel files. So I will move this thread to the corresponding forum. My colleagues will answer you shortly.

Best regards.

Hi,

May the following sample code help you for your need, kindly consult it.

Sample code:

Workbook workbook = new Workbook();
workbook.Open("f:\\test\\MyFile.xls");
Worksheet sheet1 = workbook.Worksheets[0];
bool visible = sheet1.IsRowColumnHeadersVisible;

Thank you.