ExcelExporterExport Method (DataTable, String, Boolean) |
Exports the passed in DataTable to the supplied path.
If there is already a file in the supplied path, appendToExistingXlsFile will determine whether to overwrite or append to the existing file (only applicable for Xls format).
Namespace:
Demo3D.Utilities
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntaxpublic static void Export(
DataTable table,
string pathName,
bool appendToExistingXlsFile
)
Parameters
- table
- Type: System.DataDataTable
The DataTable to export. - pathName
- Type: SystemString
The exported file path. - appendToExistingXlsFile
- Type: SystemBoolean
If appendToExistingFile is true and the pathName is in Xls format, pre-existing worksheets in the file will be unchanged (except for the newly added table).
Pre-existing worksheets will be overwritten in the case where they have the same name as the table being exported.
If appendToExistingFile is false or the pathName is not in Xls format, the existing file will be overwritten.
See Also