Executes the command which will be used to create the document file (text document, spreadsheet, presentation, form document, PDF). See the Text document API, Spreadsheet API, Presentation API, or Form API sections for more information which commands are available for various document types.
Name | Type | Description |
command | str | The command in the form of JavaScript code which will be used to create the document file (in Python, the escape character must be used when the command contains quotation symbols). |
retValue | CDocBuilderValue | The command return value. |
builder = docbuilder.CDocBuilder() builder.ExecuteCommand(L"oParagraph.AddText(\"Hello from Python!\");");
oParagraph.AddText("Hello from Python!");