I evaluate currently Spire.XLS and until now it seems to be a very impressive product.
But now I need some help:
I have an Excel-sheet with a named table (datatable). In this table is a named range datatableHeader with named cells (datatableHeaderNoCol, datatableHeaderTimestampCol, datatableHeaderValueCol and datatableHeaderRefValueCol).
I When i try to access the cells inside the table header, an exception occurs:
- Code: Select all
datatable[[#Headers] is not valid named range
The code:
- Code: Select all
int idxTimestampColumn = worksheet.Names["datatableHeaderTimestampCol"].RefersToRange.Column;
Where is my fault?