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.
|oRetValue||CDocBuilderValue^%||The command return value.|
string workDirectory = "C:/Program Files/ONLYOFFICE/DocumentBuilder"; CDocBuilder.Initialize(workDirectory); CDocBuilder oBuilder = new CDocBuilder(); oBuilder.ExecuteCommand(L"oParagraph.AddText(\"Hello from .net!\");"); CDocBuilder.Destroy();
oParagraph.AddText("Hello from .net!");