Call
Calls the specified Document Builder method. See the Text document API, Spreadsheet API, Presentation API or Form API sections for more information which methods are available for various document types.
Please note, that for the
.docbuilderfile theCDocBuilderValue.Callmethod is not used explicitly. The method itself is used instead. See the example below.
Syntax
CDocBuilderValue^ Call(String^ sName, CDocBuilderValue^ p1, CDocBuilderValue^ p2, CDocBuilderValue^ p3, CDocBuilderValue^ p4, CDocBuilderValue^ p5, CDocBuilderValue^ p6);
Parameters
| Parameter | Type | Description |
|---|---|---|
| sName | String^ | The name of the Document Builder method. |
| p1-p6 | CDocBuilderValue^ | The parameters that the Document Builder method takes as argumens. |
Example
- .Net
- .docbuilder
string workDirectory = "C:/Program Files/ONLYOFFICE/documentBuilder";
CDocBuilder.Initialize(workDirectory);
CDocBuilder oBuilder = new CDocBuilder();
CContext oContext = oBuilder.GetContext();
CValue oGlobal = oContext.GetGlobal();
CValue oApi = oGlobal["Api"];
CValue oDocument = oApi.Call("GetDocument");
CDocBuilder.Destroy();
let doc = Api.GetDocument();