Represents the Excel application that manages the workbook.
Property | Type | Description |
---|---|---|
calculationMode | string | Returns the calculation mode used in the workbook. Read-only. Possible values are: Automatic Excel controls recalculation.,AutomaticExceptTables Excel controls recalculation but ignores changes in tables.,Manual Calculation is done when the user requests it. |
None
Method | Return Type | Description |
---|---|---|
calculate(calculationType: string) | void | Recalculate all currently opened workbooks in Excel. |
load(param: object) | void | Fills the proxy object created in JavaScript layer with property and object values specified in the parameter. |
Recalculate all currently opened workbooks in Excel.
applicationObject.calculate(calculationType);
Parameter | Type | Description |
---|---|---|
calculationType | string | Specifies the calculation type to use. Possible values are: Recalculate Default-option. Performs normal calculation by calculating all the formulas in the workbook.,Full Forces a full calculation of the data.,FullRebuild Forces a full calculation of the data and rebuilds the dependencies. |
void
var ctx = new Excel.RequestContext();
ctx.workbook.application.calculate('Full');
ctx.executeAsync();
Fills the proxy object created in JavaScript layer with property and object values specified in the parameter.
object.load(param);
Parameter | Type | Description |
---|---|---|
param | object | Optional. Accepts parameter and relationship names as delimited string or an array. Or, provide loadOption object. |
void
var ctx = new Excel.RequestContext();
var application = ctx.workbook.application;
ctx.load(application);
ctx.executeAsync().then(function() {
Console.log(application.calculationMode);
});