Click or drag to resize
SaveOptions Class
Represents a base class for saving options of various file formats.
Inheritance Hierarchy
SystemObject
  GemBox.SpreadsheetSaveOptions
    More...

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1032
Syntax
public abstract class SaveOptions

The SaveOptions type exposes the following members.

Properties
  NameDescription
Public propertyContentType
Gets the content-type for this specific file format as defined in the RFC 2616.
Public propertyStatic memberCsvDefault
Gets the default options for saving to Character Separated Values file format.
Public propertyStatic memberHtmlDefault
Gets the default options for saving to HyperText Markup Language File format.
Public propertyStatic memberImageDefault
Gets the default options for saving to image formats.
Public propertyLimitations
Gets limitations for saving to a file formats.
Public propertyStatic memberOdsDefault
Gets the default options for saving to OpenDocument Spreadsheet file format.
Public propertyStatic memberPdfDefault
Gets the default options for saving to Portable Document Format file.
Public propertyStatic memberXlsDefault
Gets the default options for saving to, XLS file format (Microsoft Excel Spreadsheet format; Excel 2003 and prior versions) .
Public propertyStatic memberXlsxDefault
Gets the default options for saving to XLSX file format (Microsoft Excel Open XML Spreadsheet; Excel 2007 and later).
Public propertyStatic memberXpsDefault
Gets the default options for saving to XML Paper Specification file format.
Top
Remarks
Examples

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
});
See Also
Inheritance Hierarchy