Saves the file after all the changes are made. The type of the file which will be saved needs to be set.
Name | Type | Description |
type | BSTR | The file extension. The following values are possible: docx, odt, rtf, txt, pptx, xlsx, ods, csv, pdf (see AVS_OFFICESTUDIO_FILE_XXX values). |
path | BSTR | The path to the file to be saved together with its name and extension. |
result | VARIANT_BOOL* | Specifies if the operation of saving a file is successful or not. |
CoInitialize(NULL); IONLYOFFICEDocBuilder* oBuilder = NULL; VARIANT_BOOL b; oBuilder->Initialize(); oBuilder->SaveFile("docx", "result.docx", &b); oBuilder->Dispose();
builder.SaveFile("docx", "result.docx");