SetTmpFolder

void SetTmpFolder(sFolder);

Sets the path to the folder where the program will temporarily save files needed for the program correct work. After the successful document file creation, all the files will be deleted from the folder. If no temporary folder is set, the system one will be used.

Parameters

NameTypeDescription
sFolderString^The path to the folder where the temporary files will be saved.

Example

.Net

string workDirectory = "C:/Program Files/ONLYOFFICE/DocumentBuilder";
CDocBuilder.Initialize(workDirectory);
CDocBuilder oBuilder = new CDocBuilder();
oBuilder.SetTmpFolder(L"DocBuilderTemp");
CDocBuilder.Destroy();

.docbuilder

builder.SetTmpFolder("DocBuilderTemp")

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).