OdsSaveOptions

OdsSaveOptions class

Represents the options of saving ods file.

Constructors

NameDescription
OdsSaveOptionsCreates the options of saving ods file.
OdsSaveOptionsCreates the options of saving ods file.

Properties

NameTypeDescription
GeneratorTypeintGets and sets the generator of the ods file. The value of the property is OdsGeneratorType integer constant.
IsStrictSchema11booleanIndicates whether the ods file should be saved as ODF format version 1.1. Default is false. NOTE: This member is now obs
OdfStrictVersionintGets and sets the ODF version. The value of the property is OpenDocumentFormatVersionType integer constant.
IgnorePivotTablesboolean
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

OdsSaveOptions() (1 of 2)

Creates the options of saving ods file.


OdsSaveOptions(saveFormat) (2 of 2)

Creates the options of saving ods file.

ParameterTypeDescription
saveFormatintA SaveFormat value. The file format. It should be SaveFormat.ODS , SaveFormat.OTS , SaveFormat.FODS or SaveFormat.SXC , otherwise the saved format will be set as SaveFormat.ODS automatically.

OdsSaveOptions.GeneratorType property

Gets and sets the generator of the ods file. The value of the property is OdsGeneratorType integer constant.

Type: int

OdsSaveOptions.IsStrictSchema11 property

Indicates whether the ods file should be saved as ODF format version 1.1. Default is false. NOTE: This member is now obsolete. Instead, please use OdsSaveOptions.OdfStrictVersion property. This method will be removed 12 months later since February 2024. Aspose apologizes for any inconvenience you may have experienced.

Type: boolean

OdsSaveOptions.OdfStrictVersion property

Gets and sets the ODF version. The value of the property is OpenDocumentFormatVersionType integer constant.

Type: int

OdsSaveOptions.IgnorePivotTables property

Type: boolean

OdsSaveOptions.SaveFormat property

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

Type: int

OdsSaveOptions.ClearData property

Make the workbook empty after saving the file.

Type: boolean

OdsSaveOptions.CachedFileFolder property

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

Type: String

OdsSaveOptions.ValidateMergedAreas property

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

Type: boolean

OdsSaveOptions.MergeAreas property

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

Type: boolean

OdsSaveOptions.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

OdsSaveOptions.SortNames property

Indicates whether sorting defined names before saving file.

Type: boolean

OdsSaveOptions.SortExternalNames property

Indicates whether sorting external defined names before saving file.

Type: boolean

OdsSaveOptions.RefreshChartCache property

Indicates whether refreshing chart cache data

Type: boolean

OdsSaveOptions.CheckExcelRestriction property

Type: boolean

OdsSaveOptions.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

OdsSaveOptions.EncryptDocumentProperties property

Type: boolean