XlsxSaveOptions Class
Represent options for saving to XLSX file format (Microsoft Excel Open XML Spreadsheet; Excel 2007 and later).
public sealed class XlsxSaveOptions : SaveOptions
Public NotInheritable Class XlsxSaveOptions
Inherits SaveOptions
- Inheritance:
- XlsxSaveOptions
Constructors
XlsxSaveOptions()
Initializes a new instance of the XlsxSaveOptions class.
Properties
ContentType
Gets the content-type for XLSX file format:
public override string ContentType { get; }
Public Overrides ReadOnly Property ContentType As String
Property Value
The content-type for XLSX file format.
Overrides
DigitalSignatures
Gets the digital signature options.
public IList<XlsxDigitalSignatureSaveOptions> DigitalSignatures { get; }
Public ReadOnly Property DigitalSignatures As IList(Of XlsxDigitalSignatureSaveOptions)
Property Value
The digital signature options.
EnableZip64
Gets or sets a value indicating whether to use ZIP64 extensions when saving an XLSX file.
Property Value
ImageDpi
Gets or sets the saved images DPI.
Property Value
The saved images DPI.
Remarks
This property controls the image quality for all images in the file. Larger value results in better-quality images but increases the file size. Setting this property to 0 will disable image optimization. Standard DPI values are:
- 330 - Good quality for HD displays
- 220 - Good quality for most printers and displays
- 150 - Good quality for web pages and projectors
- 96 - Good quality for smaller file sizes
Limitations
Gets limitations for saving to XLSX file format.
public override FileFormatLimitations Limitations { get; }
Public Overrides ReadOnly Property Limitations As FileFormatLimitations
Property Value
Overrides
Remarks
These are the limits:
- MaxRows: 1048576
- MaxColumns: 16384
- MaxColors: 16000000
- MaxCellStyles: 64000
Password
Gets or sets the password used to protect / encrypt the workbook.
Property Value
Type
Specifies type of generated file. Set this property only if you want to override default type.
Property Value
Events
ProgressChanged
Occurs when the saving progress of a file has changed.
public event EventHandler<OperationProgressChangedEventArgs> ProgressChanged
Public Event ProgressChanged As EventHandler(Of OperationProgressChangedEventArgs)
Event Type
Remarks
The file path or stream that was provided as a file destination is used as a UserState.
Inherited Properties
CsvDefault | Gets the default options for saving to Character Separated Values file format. (Inherited from SaveOptions) |
HtmlDefault | Gets the default options for saving to HyperText Markup Language File format. (Inherited from SaveOptions) |
ImageDefault | Gets the default options for saving to image formats. (Inherited from SaveOptions) |
OdsDefault | Gets the default options for saving to OpenDocument Spreadsheet file format. (Inherited from SaveOptions) |
PdfDefault | Gets the default options for saving to Portable Document Format file. (Inherited from SaveOptions) |
TxtDefault | Gets the default options for saving to Tab delimited file format. (Inherited from SaveOptions) |
XlsDefault | Gets the default options for saving to, XLS file format (Microsoft Excel Spreadsheet format; Excel 2003 and prior versions) . (Inherited from SaveOptions) |
XlsbDefault | Gets the default options for saving to XLSB file format (Microsoft Excel Binary File Format). (Inherited from SaveOptions) |
XlsxDefault | Gets the default options for saving to XLSX file format (Microsoft Excel Open XML Spreadsheet; Excel 2007 and later). (Inherited from SaveOptions) |
XpsDefault | Gets the default options for saving to XML Paper Specification file format. (Inherited from SaveOptions) |