Class XlsbSaveOptions
Contents
[
Hide
]XlsbSaveOptions class
Represents the options for saving xlsb file.
public class XlsbSaveOptions : SaveOptions
Constructors
| Name | Description |
|---|---|
| XlsbSaveOptions() | Creates xlsb file save options. |
| XlsbSaveOptions(SaveFormat) | (Obsolete.) Creates xlsb file save options. |
Properties
| Name | Description |
|---|---|
| CachedFileFolder { get; set; } | The folder for temporary files that may be used as data cache.(Inherited from SaveOptions.) |
| CheckExcelRestriction { get; set; } | Whether check restriction of excel file when user modify cells related objects. For example, excel does not allow inputting string value longer than 32K. When you input a value longer than 32K, it will be truncated.(Inherited from SaveOptions.) |
| ClearData { get; set; } | Make the workbook empty after saving the file.(Inherited from SaveOptions.) |
| CompressionType { get; set; } | Gets and sets the compression type for ooxml file. |
| 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.) |
| ExportAllColumnIndexes { get; set; } | Indicates whether exporting all column indexes for cells. |
| LightCellsDataProvider { get; set; } | The data provider for saving workbook in light mode. |
| 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
namespace AsposeCellsExamples
{
using Aspose.Cells;
using System;
public class XlsbSaveOptionsDemo
{
public static void XlsbSaveOptionsExample()
{
// Create a new workbook
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
worksheet.Cells["A1"].PutValue("Hello World");
// Create an instance of XlsbSaveOptions
XlsbSaveOptions saveOptions = new XlsbSaveOptions
{
CompressionType = OoxmlCompressionType.Level6,
ExportAllColumnIndexes = true,
ClearData = false,
CachedFileFolder = "C:\\Temp",
ValidateMergedAreas = true,
MergeAreas = true,
SortNames = true,
SortExternalNames = true,
RefreshChartCache = true,
UpdateSmartArt = false
};
// Save the workbook as XLSB file with the specified options
workbook.Save("XlsbSaveOptionsExample.xlsb", saveOptions);
return;
}
}
}
See Also
- class SaveOptions
- namespace Aspose.Cells
- assembly Aspose.Cells