ExcelExporterExport Method (DataSet, String, Boolean) |
Exports the passed in DataSet 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(
DataSet dataSet,
string pathName,
bool appendToExistingXlsFile
)
Parameters
- dataSet
- Type: System.DataDataSet
The DataSet to export. - pathName
- Type: SystemString
The exported file path. - appendToExistingXlsFile
- Type: SystemBoolean
If appendToExistingXlsFile is true and the pathName is in Xls format, pre-existing worksheets in the file will be unchanged (except for the newly added tables from the DataSet).
Pre-existing worksheets will be overwritten in the case where they have the same name as a table being exported from the DataSet.
If appendToExistingXlsFile is false or the pathName is not in Xls format, the existing file will be overwritten.
See Also