Click or drag to resize

XpsSaveOptionsSelectionType Property

Gets or sets a value indicating whether to save the whole ExcelFile or just ActiveWorksheet.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version:
public SelectionType SelectionType { get; set; }

Property Value

Type: SelectionType

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

// Save active sheet

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