Get Started
Documentation
Macros
More information
|
window.Asc.plugin.info.recalculate writeDescription
Defines the method that makes the document to recalculate its content data. Force the document to recalculate its content data. If the document content is changed and recalculation is needed, isRecalculate must be set to true. It is necessary because the recalculation process is asynchronous. Moreover, some other data might need to be uploaded (e.g. a font or something else). When using plugins with OLE objects isRecalculate is not necessary as the document recalculates its data itself.
Returns
Type boolean Example
window.Asc.plugin.init = function () { var sScript = 'var oDocument = Api.GetDocument();'; sScript += 'oDocument.CreateNewHistoryPoint();'; sScript += 'oParagraph = Api.CreateParagraph();'; sScript += 'oParagraph.AddText(\'Hello word!\');'; sScript += 'oDocument.InsertContent([oParagraph]);'; window.Asc.plugin.info.recalculate = true; this.executeCommand("close", sScript); }; |
© Ascensio System SIA 2021. All rights reserved
|