CreateFile
Creates a new file. The type of the file which will be created needs to be set.
Parameters:
Name |
Type |
Description |
nType |
const int&
|
The type of the file to be created set as a hexadecimal integer for the C++ code or docx, xlsx or pptx for the .docbuilder script file
(see AVS_OFFICESTUDIO_FILE_XXX values). |
Example
std::wstring sWorkDirectory = NSUtils::GetBuilderDirectory();
CDocBuilder::Initialize(sWorkDirectory.c_str());
CDocBuilder oBuilder;
oBuilder.CreateFile(OFFICESTUDIO_FILE_DOCUMENT_DOCX);
CDocBuilder::Dispose();
builder.CreateFile("docx");