Get Started
Documentation

CloseFile

void CloseFile();

Close the file to stop working with it. You can use a single ONLYOFFICE Document Builder instance to work with all your files, but you need to close the previous file before you can start working with the next one in this case.

Example

C++

NSDoctRenderer::CDocBuilder::Initialize();
NSDoctRenderer::CDocBuilder oBuilder;
oBuilder.CloseFile();
NSDoctRenderer::CDocBuilder::Dispose();

.docbuilder

builder.CloseFile();