GridWorkbookSettings class

GridWorkbookSettings class

Represents the settings of the workbook.

The GridWorkbookSettings type exposes the following members:

Constructors

ConstructorDescription
__init__(self)Constructs a new instance of GridWorkbookSettings

Properties

PropertyDescription
max_iterationReturns or sets the maximum number of iterations to resolve a circular reference, the default value is 100.
iterationIndicates whether use iteration to resolve circular references.
force_full_calculateIndicates whether fully calculates every time when a calculation is triggered.
create_calc_chainIndicates whether create calculated formulas chain. Default is false.
re_calculate_on_openIndicates whether re-calculate all formulas on opening file. Default is true.
precision_as_displayedTrue if calculations in this workbook will be done using only the precision of the numbers as they’re displayed
date1904Gets or sets a value which represents if the workbook uses the 1904 date system.
enable_macrosEnable macros; Now it only works when copying a worksheet to other worksheet in a workbook.
check_custom_number_formatIndicates whether checking custom number format when setting Style.Custom, default is false.
check_excel_restrictionWhether 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 such as by Cell.PutValue(string), if this property is true, you will get an Exception.
If this property is false, we will accept your input string value as the cell’s value so that later
you can output the complete string value for other file formats such as CSV.
However, if you have set such kind of value that is invalid for excel file format,
you should not save the workbook as excel file format later. Otherwise there may be unexpected error for the generated excel file.
default is false.
authorGets/sets the author of the file.

Example

from aspose.cellsgridjs import GridJsWorkbook, GridWorkbookSettings

g = GridJsWorkbook()
gsettings = GridWorkbookSettings()
g.settings = gsettings

See Also