Hi,
How can we retrieve the worksheet names using Aspose.Cells. I have attached below a excel sheet which has three sheets with the names "Test1", "Test2" and "Test3". I was trying the following code snippet -
workbook =
new Workbook();
workbook.Open(ExcelFileName);
string[] sNames = new string[workbook.Worksheets.Count];
Names worksheetNames = workbook.Worksheets.Names;
foreach (Name name in worksheetNames)
{
sNames[loop++] = name.Text;
}
return sNames;
However the collection worksheetNames did not have any element when I did a quickwatch and so it did not enter the for each loop.
Please let me know any alternative.
Thanks
Hemangajit