OoxmlSaveOptions

OoxmlSaveOptions class

Represents the options of saving office open xml file.

Constructors

NameDescription
OoxmlSaveOptionsCreates the options for saving office open xml file.
OoxmlSaveOptionsCreates the options for saving office open xml file.

Properties

NameTypeDescription
AsFlatOpcboolean
ExportCellNamebooleanIndicates if export cell name to Excel2007 .xlsx (.xlsm, .xltx, .xltm) file. If the output file may be accessed by SQL S
LightCellsDataProviderLightCellsDataProviderThe data provider for saving workbook in light mode.
UpdateZoombooleanIndicates whether update scaling factor before saving the file if the PageSetup.FitToPagesWide and PageSetup.FitToPagesT
EnableZip64booleanAlways use ZIP64 extensions when writing zip archives, even when unnecessary.
EmbedOoxmlAsOleObjectbooleanIndicates whether embedding Ooxml files of OleObject as ole object. Only for OleObject.
CompressionTypeintGets and sets the compression type for ooxml file. The value of the property is OoxmlCompressionType integer constant. T
WpsCompatibilityboolean
SaveFormatintGets the save file format. The value of the property is SaveFormat integer constant.
ClearDatabooleanMake the workbook empty after saving the file.
CachedFileFolderStringThe cached file folder is used to store some large data.
ValidateMergedAreasbooleanIndicates whether validate merged cells before saving the file. The default value is false.
MergeAreasbooleanIndicates whether merge the areas of conditional formatting and validation before saving the file. The default value is
CreateDirectorybooleanIf true and the directory does not exist, the directory will be automatically created before saving the file. The defaul
SortNamesbooleanIndicates whether sorting defined names before saving file.
SortExternalNamesbooleanIndicates whether sorting external defined names before saving file.
RefreshChartCachebooleanIndicates whether refreshing chart cache data
CheckExcelRestrictionboolean
UpdateSmartArtbooleanIndicates whether updating smart art setting. The default value is false. Only effects after calling Shape.GetResultOfSm
EncryptDocumentPropertiesboolean

OoxmlSaveOptions() (1 of 2)

Creates the options for saving office open xml file.


OoxmlSaveOptions(saveFormat) (2 of 2)

Creates the options for saving office open xml file.

ParameterTypeDescription
saveFormatintA SaveFormat value. The file format. It should be one of following types: SaveFormat.XLSX , SaveFormat.XLTX , SaveFormat.XLAM , SaveFormat.XLSM or SaveFormat.XLTM , otherwise the saved format will be set as SaveFormat.XLSX automatically.

OoxmlSaveOptions.AsFlatOpc property

Type: boolean

OoxmlSaveOptions.ExportCellName property

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.

Type: boolean

OoxmlSaveOptions.LightCellsDataProvider property

The data provider for saving workbook in light mode.

Type: LightCellsDataProvider

OoxmlSaveOptions.UpdateZoom property

Indicates whether update scaling factor before saving the file if the PageSetup.FitToPagesWide and PageSetup.FitToPagesTall properties control how the worksheet is scaled. The default value is false for performance.

Type: boolean

OoxmlSaveOptions.EnableZip64 property

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

Type: boolean

OoxmlSaveOptions.EmbedOoxmlAsOleObject property

Indicates whether embedding Ooxml files of OleObject as ole object. Only for OleObject.

Type: boolean

OoxmlSaveOptions.CompressionType property

Gets and sets the compression type for ooxml file. The value of the property is OoxmlCompressionType integer constant. The default value is OoxmlCompressionType.Level2.

Type: int

OoxmlSaveOptions.WpsCompatibility property

Type: boolean

OoxmlSaveOptions.SaveFormat property

Gets the save file format. The value of the property is SaveFormat integer constant.

Type: int

OoxmlSaveOptions.ClearData property

Make the workbook empty after saving the file.

Type: boolean

OoxmlSaveOptions.CachedFileFolder property

The cached file folder is used to store some large data.

Type: String

OoxmlSaveOptions.ValidateMergedAreas property

Indicates whether validate merged cells before saving the file. The default value is false.

Type: boolean

OoxmlSaveOptions.MergeAreas property

Indicates whether merge the areas of conditional formatting and validation before saving the file. The default value is false.

Type: boolean

OoxmlSaveOptions.CreateDirectory property

If true and the directory does not exist, the directory will be automatically created before saving the file. The default value is false.

Type: boolean

OoxmlSaveOptions.SortNames property

Indicates whether sorting defined names before saving file.

Type: boolean

OoxmlSaveOptions.SortExternalNames property

Indicates whether sorting external defined names before saving file.

Type: boolean

OoxmlSaveOptions.RefreshChartCache property

Indicates whether refreshing chart cache data

Type: boolean

OoxmlSaveOptions.CheckExcelRestriction property

Type: boolean

OoxmlSaveOptions.UpdateSmartArt property

Indicates whether updating smart art setting. The default value is false. Only effects after calling Shape.GetResultOfSmartArt() method and the cached shapes exist in the template file.

Type: boolean

OoxmlSaveOptions.EncryptDocumentProperties property

Type: boolean