SaveOptions Class |
Namespace: GemBox.Spreadsheet
The SaveOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | ContentType |
Gets the content-type for this specific file format as defined in the RFC 2616.
|
![]() ![]() | CsvDefault |
Gets the default options for saving to Character Separated Values file format.
|
![]() ![]() | HtmlDefault |
Gets the default options for saving to HyperText Markup Language File format.
|
![]() ![]() | ImageDefault |
Gets the default options for saving to image formats.
|
![]() | Limitations |
Gets limitations for saving to a file formats.
|
![]() ![]() | OdsDefault |
Gets the default options for saving to OpenDocument Spreadsheet file format.
|
![]() ![]() | PdfDefault |
Gets the default options for saving to Portable Document Format file.
|
![]() ![]() | XlsDefault |
Gets the default options for saving to, XLS file format (Microsoft Excel Spreadsheet format; Excel 2003 and prior versions) .
|
![]() ![]() | XlsxDefault |
Gets the default options for saving to XLSX file format (Microsoft Excel Open XML Spreadsheet; Excel 2007 and later).
|
![]() ![]() | XpsDefault |
Gets the default options for saving to XML Paper Specification file format.
|
Following code demonstrates different ways of saving ExcelFile to specified file format.
// Saves the spreadsheet to a file with the specified path ef.Save("Report.xlsx"); using (FileStream stream = new FileStream("Report.pdf", FileMode.Create)) { // Saves file to the stream ef.Save(stream, SaveOptions.PdfDefault); } // Saves the file using specified save options ef.Save("Report.html", new HtmlSaveOptions { SelectionType = SelectionType.EntireFile });