Click or drag to resize
XpsSaveOptions Class
Represents options for saving to XML Paper Specification file format.
Inheritance Hierarchy

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1033
Syntax
public sealed class XpsSaveOptions : SaveOptions

The XpsSaveOptions type exposes the following members.

Constructors
  NameDescription
Public methodXpsSaveOptions
Initializes a new instance of the XpsSaveOptions class.
Top
Properties
  NameDescription
Public propertyContentType
Gets the content-type for XPS file format: application/vnd.ms-xpsdocument.
(Overrides SaveOptionsContentType.)
Public propertyLimitations
Gets limitations for saving to XPS file format.
(Overrides SaveOptionsLimitations.)
Public propertyMetafileScaleFactor
Gets or sets the scaling factor for rendering metafile (WMF and EMF) images. Greater scaling factor improves quality but also increases file size. Default value is 1.
Public propertyCode exampleSelectionType
Gets or sets a value indicating whether to save the whole ExcelFile or just ActiveWorksheet.
Top
Examples

Following code demonstrates how to save ExcelFile to XPS file format.

// Save active sheet
ef.Save("Report.xps");

// Save all sheets
ef.Save("Report.xps", new XpsSaveOptions()
{
    SelectionType = SelectionType.EntireFile
});
See Also