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 | const wchar_t*/const char* | The name of the Document Builder method in the Unicode or UTF8 format. |
p1-p6 | CDocBuilderValue | The parameters that the Document Builder method takes as arguments. |
std::wstring sWorkDirectory = NSUtils::GetBuilderDirectory(); CDocBuilder::Initialize(sWorkDirectory.c_str()); CDocBuilder oBuilder; CContext oContext = oBuilder.GetContext(); CValue oGlobal = oContext.GetGlobal(); CValue oApi = oGlobal["Api"]; CValue oDocument = oApi.Call("GetDocument"); CDocBuilder::Dispose();
var oDocument = Api.GetDocument();