CDocBuilder

new CDocBuilder

Base class used by ONLYOFFICE Document Builder for the document file (text document, spreadsheet, presentation, form document, PDF) to be generated.

Methods

NameDescription
CloseFileCloses the file to stop working with it.
CreateFileCreates a new file.
CreateInstanceCreates an instance of the CDocBuilder class.
DisposeUnloads the ONLYOFFICE Document Builder from the application memory when it is no longer needed.
ExecuteExecutes the command which will be used to create the document file (text document, spreadsheet, presentation, form document, PDF). The command returns the I_DOCBUILDER_VALUE** value.
ExecuteCommandExecutes the command which will be used to create the document file (text document, spreadsheet, presentation, form document, PDF). The command returns the VARIANT_BOOL* value.
GetContextReturns the current JS context.
InitializeInitializes the ONLYOFFICE Document Builder as a library for the application to be able to work with it.
IsSaveWithDoctrendererModeSpecifies if the doctrenderer mode is used when building a document or getting content from the editor when saving a file.
OpenFileOpens the document file which will be edited and saved afterwards.
RunRuns the ONLYOFFICE Document Builder executable.
RunTextRuns all the commands for the document creation using a single command.
SaveFileSaves the file after all the changes are made.
SetPropertySets an argument to the builder class which can be transferred to the program outside the CDocBuilder.ExecuteCommand method.
SetTmpFolderSets the path to the folder where the program will temporarily save files needed for the program correct work.
WriteDataWrites data to the log file.

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).