OoxmlSaveOptions
OoxmlSaveOptions class
Represents the options of saving office open xml file.
Constructors
| Name | Description |
|---|---|
| OoxmlSaveOptions | Creates the options for saving office open xml file. |
| OoxmlSaveOptions | Creates the options for saving office open xml file. |
Properties
| Name | Type | Description |
|---|---|---|
| AsFlatOpc | boolean | |
| ExportCellName | boolean | Indicates if export cell name to Excel2007 .xlsx (.xlsm, .xltx, .xltm) file. If the output file may be accessed by SQL S |
| LightCellsDataProvider | LightCellsDataProvider | The data provider for saving workbook in light mode. |
| UpdateZoom | boolean | Indicates whether update scaling factor before saving the file if the PageSetup.FitToPagesWide and PageSetup.FitToPagesT |
| EnableZip64 | boolean | Always use ZIP64 extensions when writing zip archives, even when unnecessary. |
| EmbedOoxmlAsOleObject | boolean | Indicates whether embedding Ooxml files of OleObject as ole object. Only for OleObject. |
| CompressionType | int | Gets and sets the compression type for ooxml file. The value of the property is OoxmlCompressionType integer constant. T |
| WpsCompatibility | boolean | |
| SaveFormat | int | Gets the save file format. The value of the property is SaveFormat integer constant. |
| ClearData | boolean | Make the workbook empty after saving the file. |
| CachedFileFolder | String | The cached file folder is used to store some large data. |
| ValidateMergedAreas | boolean | Indicates whether validate merged cells before saving the file. The default value is false. |
| MergeAreas | boolean | Indicates whether merge the areas of conditional formatting and validation before saving the file. The default value is |
| CreateDirectory | boolean | If true and the directory does not exist, the directory will be automatically created before saving the file. The defaul |
| SortNames | boolean | Indicates whether sorting defined names before saving file. |
| SortExternalNames | boolean | Indicates whether sorting external defined names before saving file. |
| RefreshChartCache | boolean | Indicates whether refreshing chart cache data |
| CheckExcelRestriction | boolean | |
| UpdateSmartArt | boolean | Indicates whether updating smart art setting. The default value is false. Only effects after calling Shape.GetResultOfSm |
| EncryptDocumentProperties | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
| saveFormat | int | A 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