Creates a new file. The type of the file which will be created needs to be set.
Name | Type | Description |
type | BSTR | The file extension. The following values are possible: docx, xlsx, pptx, or pdf (see AVS_OFFICESTUDIO_FILE_XXX values). |
result | VARIANT_BOOL* | Specifies if the operation of creating a file is successful or not. |
CoInitialize(NULL); IONLYOFFICEDocBuilder* oBuilder = NULL; VARIANT_BOOL b; oBuilder->Initialize(); oBuilder->CreateFile(_bstr_t("docx"), &b); oBuilder->Dispose();
builder.CreateFile("docx");