To export a workbook to an ODS (OpenDocument Spreadsheet) file, create an instance of the CalcExporter class and call the Export method. The following example illustrates how to do this:
C# Copy Code |
---|
var calcExporter = new CalcExporter(); |
Visual Basic Copy Code |
---|
Dim calcExporter As New CalcExporter() |
To export a workbook to an XLSX (Office Open XML) file, create an instance of the ExcelExporter class and call the Export method. The following example illustrates how to do this:
C# Copy Code |
---|
var excelExporter = new ExcelExporter(); |
Visual Basic Copy Code |
---|
Dim excelExporter As New ExcelExporter() |
To export a worksheet to an CSV (comma-separated values) file, create an instance of the CsvExporter class, set the appropriate properties and call the Export method. The Quote and Separator properties can be used to specify the quote and separator characters respectively in the exported file. The CsvExportForm (found in the MindFusion.Spreadsheet.Wpf.StandardForms.dll assembly) can be used to facilitate the export to CSV.
The following example illustrates how to export a worksheet to an CSV file:
C# Copy Code |
---|
var csvExporter = new CsvExporter(); |
Visual Basic Copy Code |
---|
Dim csvExporter As New CsvExporter() |
To export a worksheet to a PDF file, create an instance of the PdfExporter class, set the appropriate properties and call the Export method. The following example illustrates how to do this:
C# Copy Code |
---|
var pdfExporter = new PdfExporter(); |
Visual Basic Copy Code |
---|
Dim pdfExporter As New PdfExporter() |