How to get column names of a named range with column headers in C#.
This article explains how to retrieve the column names from a named range with column headers using XlsIO. XlsIO does not have any direct way of retrieving column names from a named range with column headers. But there are few workarounds to achieve this. One way is exporting the named range to data table and retrieving the column names from data table. The alternate one is processing named range. XlsIO always considers first row of named range as column header. So, the column names can be retrieved by accessing the first row of named range. Download input file with data To know more about exporting data to data table, please refer the documentation. The following complete code snippet explains how to retrieve column names of a named range with column headers by processing it. C#
|
No comments:
Post a Comment