TRY NEW VERSION

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

Name Description
CloseFile Closes the file to stop working with it.
CreateFile Creates a new file.
CreateInstance Creates an instance of the CDocBuilder class.
Dispose Unloads the ONLYOFFICE Document Builder from the application memory when it is no longer needed.
Execute Executes 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.
ExecuteCommand Executes 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.
GetContext Returns the current JS context.
Initialize Initializes the ONLYOFFICE Document Builder as a library for the application to be able to work with it.
IsSaveWithDoctrendererMode Specifies if the doctrenderer mode is used when building a document or getting content from the editor when saving a file.
OpenFile Opens the document file which will be edited and saved afterwards.
Run Runs the ONLYOFFICE Document Builder executable.
RunText Runs all the commands for the document creation using a single command.
SaveFile Saves the file after all the changes are made.
SetProperty Sets an argument to the builder class which can be trasferred to the program outside the CDocBuilder.ExecuteCommand method.
SetTmpFolder Sets the path to the folder where the program will temporarily save files needed for the program correct work.
WriteData Writes data to the log file.