Class OoxmlSaveOptions

Class OoxmlSaveOptions

Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)

Represents the options of saving office open xml file.

public class OoxmlSaveOptions : SaveOptions

Inheritance

objectSaveOptionsOoxmlSaveOptions

Inherited Members

SaveOptions.m_SaveFormat, SaveOptions.SaveFormat, SaveOptions.ClearData, SaveOptions.CachedFileFolder, SaveOptions.ValidateMergedAreas, SaveOptions.MergeAreas, SaveOptions.CreateDirectory, SaveOptions.SortNames, SaveOptions.SortExternalNames, SaveOptions.RefreshChartCache, SaveOptions.WarningCallback, SaveOptions.CheckExcelRestriction, SaveOptions.UpdateSmartArt, SaveOptions.EncryptDocumentProperties, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

OoxmlSaveOptions()

Creates the options for saving office open xml file.

public OoxmlSaveOptions()

OoxmlSaveOptions(SaveFormat)

Creates the options for saving office open xml file.

public OoxmlSaveOptions(SaveFormat saveFormat)

Parameters

saveFormat SaveFormat

The file format. It should be one of following types: Aspose.Cells.SaveFormat.Xlsx, Aspose.Cells.SaveFormat.Xltx, Aspose.Cells.SaveFormat.Xlam, Aspose.Cells.SaveFormat.Xlsm or Aspose.Cells.SaveFormat.Xltm, otherwise the saved format will be set as Aspose.Cells.SaveFormat.Xlsx automatically.

Properties

CompressionType

Gets and sets the compression type for ooxml file.

public OoxmlCompressionType CompressionType { get; set; }

Property Value

OoxmlCompressionType

Remarks

The default value is OoxmlCompressionType.Level2.

EmbedOoxmlAsOleObject

Indicates whether embedding Ooxml files of OleObject as ole object.

public bool EmbedOoxmlAsOleObject { get; set; }

Property Value

bool

Remarks

Only for OleObject.

EnableZip64

Always use ZIP64 extensions when writing zip archives, even when unnecessary.

public bool EnableZip64 { get; set; }

Property Value

bool

ExportCellName

Indicates if export cell name to Excel2007 .xlsx (.xlsm, .xltx, .xltm) file. If the output file may be accessed by SQL Server DTS, this value must be true. Setting the value to false will highly increase the performance and reduce the file size when creating large file. Default value is true.

public bool ExportCellName { get; set; }

Property Value

bool

LightCellsDataProvider

The data provider for saving workbook in light mode.

public LightCellsDataProvider LightCellsDataProvider { get; set; }

Property Value

LightCellsDataProvider

UpdateZoom

Indicates whether update scaling factor before saving the file if the PageSetup.FitToPagesWide and PageSetup.FitToPagesTall properties control how the worksheet is scaled.

public bool UpdateZoom { get; set; }

Property Value

bool

Remarks

The default value is false for performance.

WpsCompatibility

Indicates whether to make the xls more compatible with WPS.

public bool WpsCompatibility { get; set; }

Property Value

bool