Get Started
Documentation

Run

bool Run(sPath);

Run ONLYOFFICE Document Builder executable. If you do not want to write a C++ application, you can simply use the docbuilder.exe executable file and run it with the .docbuilder file as an argument, where all the code for the document file creation will be written. For C++ the path to the executable file from the sPath parameter must be used, the CDocBuilder object created and the Run method is called.

Parameters:

Name Type Description
sPath const wchar_t* The path to the ONLYOFFICE Document Builder executable.

Example

C++

int wmain(int argc, wchar_t *argv[])
{
  if (argc <= 0)
    return 0;
  NSDoctRenderer::CDocBuilder::Initialize();
  NSDoctRenderer::CDocBuilder oBuilder;
#ifdef _DOC_BUILDER_EXECUTABLE_
  std::wstring sBuildFile(argv[argc - 1]);
  oBuilder.Run(argv[argc - 1]);
#endif
  NSDoctRenderer::CDocBuilder::Dispose();
  return 0;
}

.docbuilder

docbuilder.exe mydocument.docbuilder