call
CDocBuilderValue call(name: String, p1: Object, p2: Object, p3: Object, p4: Object, p5: Object, p6: Object)
Description
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
.docbuilder
file theCDocBuilderValue.call
method is not used explicitly. The method itself is used instead. See the example below.
Parameters
- name
String
- The name of the Document Builder method.
- p1-p6
Object
- The parameters that the Document Builder method takes as argumens.
Example
Java
CDocBuilder.initialize("");
CDocBuilder builder = new CDocBuilder();
CDocBuilderContext context = builder.getContext();
CDocBuilderValue global = context.getGlobal();
CDocBuilderValue api = global.get("Api");
CDocBuilderValue document = api.call("GetDocument");
CDocBuilder.dispose();
.docbuilder
const oDocument = Api.GetDocument()