Class SpreadsheetML2003SaveOptions
Contents
[
Hide
]SpreadsheetML2003SaveOptions class
Represents the options for saving Excel 2003 spreadml file.
public class SpreadsheetML2003SaveOptions : SaveOptions
Constructors
Name | Description |
---|---|
SpreadsheetML2003SaveOptions() | Creates the options for saving Excel 2003 spreadml file. |
SpreadsheetML2003SaveOptions(SaveFormat) | (Obsolete.) Creates the options for saving Excel 2003 spreadml file. |
Properties
Name | Description |
---|---|
CachedFileFolder { get; set; } | The cached file folder is used to store some large data.(Inherited from SaveOptions .) |
ClearData { get; set; } | Make the workbook empty after saving the file.(Inherited from SaveOptions .) |
CreateDirectory { get; set; } | If true and the directory does not exist, the directory will be automatically created before saving the file.(Inherited from SaveOptions .) |
EncryptDocumentProperties { get; set; } | Indicates whether encrypt document properties when saving as .xls file. The default value is true.(Inherited from SaveOptions .) |
ExportColumnIndexOfCell { get; set; } | The default value is false, it means that column index will be ignored if the cell is contiguous to the previous cell. |
IsIndentedFormatting { get; set; } | Causes child elements to be indented. |
LimitAsXls { get; set; } | Limit as xls, the max row index is 65535 and the max column index is 255. |
MergeAreas { get; set; } | Indicates whether merge the areas of conditional formatting and validation before saving the file.(Inherited from SaveOptions .) |
RefreshChartCache { get; set; } | Indicates whether refreshing chart cache data(Inherited from SaveOptions .) |
SaveFormat { get; } | Gets the save file format.(Inherited from SaveOptions .) |
SortExternalNames { get; set; } | Indicates whether sorting external defined names before saving file.(Inherited from SaveOptions .) |
SortNames { get; set; } | Indicates whether sorting defined names before saving file.(Inherited from SaveOptions .) |
UpdateSmartArt { get; set; } | Indicates whether updating smart art setting. The default value is false.(Inherited from SaveOptions .) |
ValidateMergedAreas { get; set; } | Indicates whether validate merged cells before saving the file.(Inherited from SaveOptions .) |
WarningCallback { get; set; } | Gets or sets warning callback.(Inherited from SaveOptions .) |
Examples
[C#]
namespace Demos
{
using Aspose.Cells;
using System;
public class SpreadsheetML2003SaveOptionsDemo
{
public static void SpreadsheetML2003SaveOptionsExample()
{
// Create a new workbook
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
// Fill some data into the worksheet
worksheet.Cells["A1"].PutValue("Hello");
worksheet.Cells["B1"].PutValue("World");
worksheet.Cells["A2"].PutValue(123);
worksheet.Cells["B2"].PutValue(456);
// Create an instance of SpreadsheetML2003SaveOptions
SpreadsheetML2003SaveOptions saveOptions = new SpreadsheetML2003SaveOptions();
// Set properties
saveOptions.IsIndentedFormatting = true;
saveOptions.LimitAsXls = false;
saveOptions.ExportColumnIndexOfCell = true;
saveOptions.ClearData = false;
saveOptions.CachedFileFolder = @"C:\Temp";
saveOptions.ValidateMergedAreas = true;
saveOptions.MergeAreas = true;
saveOptions.SortNames = true;
saveOptions.SortExternalNames = true;
saveOptions.RefreshChartCache = true;
saveOptions.UpdateSmartArt = false;
// Save the workbook with the specified save options
workbook.Save("SpreadsheetML2003Example.xml", saveOptions);
return;
}
}
}
See Also
- class SaveOptions
- namespace Aspose.Cells
- assembly Aspose.Cells