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.
Name | Type | Description |
sName | String^ | The name of the Document Builder method. |
p1-p6 | CBuilderValue^ | The parameters that the Document Builder method takes as argumens. |
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();
var oDocument = Api.GetDocument();