sheet.ExportDataTable(1,1,sheet.UsedRange.End.Row,4,ExcelExportDataTableOptions.ColumnNames);
and here is a sample which does the above:DataTableExport.zip
Regarding the exception thrown when using a template for exporting, I am afraid.I was unable to reproduce the problem.Could you please provide me with a template file or modify the attached
sample to show your problem so that I can further investigate on this issue.
Thanks,
Bharath.
> sheet.ExportDataTable(1,1,sheet.UsedRange.End.Row,4,ExcelExportDataTableOptions.ColumnNames);
>
>
>and here is a sample which does the above:DataTableExport.zip
>
>
>Regarding the exception thrown when using a template for exporting, I am afraid.I was unable to reproduce the problem.Could you please provide me with a template file or modify the attached
>
>sample to show your problem so that I can further investigate on this issue.
>
>Thanks,
>Bharath.
>
Bharath,
Here is the spreadsheet and the code. I actually recreated the C# project from scratch just to confirm that there wasn''t some special problem with the original.
>> sheet.ExportDataTable(1,1,sheet.UsedRange.End.Row,4,ExcelExportDataTableOptions.ColumnNames);
>>
>>
>>and here is a sample which does the above:DataTableExport.zip
>>
>>
>>Regarding the exception thrown when using a template for exporting, I am afraid.I was unable to reproduce the problem.Could you please provide me with a template file or modify the attached
>>
>>sample to show your problem so that I can further investigate on this issue.
>>
>>Thanks,
>>Bharath.
>>
>
>Bharath,
>
>Here is the spreadsheet and the code. I actually recreated the C# project from scratch just to confirm that there wasn''t some special problem with the original.
IWorkbook workbook = application.Workbooks.Open(spreadsheetName,ExcelParseOptions.SkipStyles);
Here is a sample for your reference: CRCXLSTest.zip
Please take a look at the modified sample and let me know if have any other queries.
BestRegards,
Bharath
>IWorkbook workbook = application.Workbooks.Open(spreadsheetName,ExcelParseOptions.SkipStyles);
>
>
>
>Here is a sample for your reference: CRCXLSTest.zip
>
>Please take a look at the modified sample and let me know if have any other queries.
>
>BestRegards,
>
>Bharath
>