跳到主要内容

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 .docbuilder file the CDocBuilderValue.Call method is not used explicitly. The method itself is used instead. See the example below.

Syntax

def Call(self, str name, CDocBuilderValue *args);

Parameters

ParameterTypeDescription
namestrThe name of the Document Builder method.
*argsCDocBuilderValueThe parameters that the Document Builder method takes as arguments.

Example

Python

builder = docbuilder.CDocBuilder()
context = builder.GetContext()
globalObj = context.GetGlobal()
api = globalObj["Api"]
document = api.Call("GetDocument")

.docbuilder

const oDocument = Api.GetDocument()