Get Started
Documentation

ExecuteCommand

bool ExecuteCommand(sCommand);

Execute the command which will be used to create the document file (text document, spreadsheet, PDF, etc.). See the Text document API and Spreadsheet API sections for more information which commands are available for various document types.

Please note, that for the .docbuilder file the CDocBuilder.ExecuteCommand method is not used explicitly, the command itself is used instead, see the example below.

Parameters:

Name Type Description
sCommand const wchar_t* The command which will be used to create the document file (in C++ the escape character must be used when the command contains quotation symbols).

Example

C++

NSDoctRenderer::CDocBuilder::Initialize();
NSDoctRenderer::CDocBuilder oBuilder;
oBuilder.ExecuteCommand(L"oParagraph.AddText(\"Center\");");
NSDoctRenderer::CDocBuilder::Dispose();

.docbuilder

oParagraph.AddText("Center");