Initialize
static void Initialize(sDirectory: String^ = 0)
Description
Initializes the ONLYOFFICE Document Builder as a library for the application to be able to work with it. This method just sets the directory to the main Document Builder resources (icu files, etc). If this method is not called, the Document Builder will find resources from the current process directory.
Please note, that for the
.docbuilder
file theCDocBuilder.Initialize
method is not used.
Parameters
- sDirectory
String^
0 - The path to the main Document Builder resources.
Example
.Net
string workDirectory = "C:/Program Files/ONLYOFFICE/DocumentBuilder";
CDocBuilder.Initialize(workDirectory);
CDocBuilder oBuilder = new CDocBuilder();
CDocBuilder.Destroy();