Get Started
Documentation

CreateFile

bool CreateFile(nType);

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

Example

C++

#define OFFICESTUDIO_FILE_DOCUMENT          0x0040
#define OFFICESTUDIO_FILE_DOCUMENT_DOCX     OFFICESTUDIO_FILE_DOCUMENT + 0x0001
NSDoctRenderer::CDocBuilder::Initialize();
NSDoctRenderer::CDocBuilder oBuilder;
oBuilder.CreateFile(OFFICESTUDIO_FILE_DOCUMENT_DOCX);
NSDoctRenderer::CDocBuilder::Dispose();

.docbuilder

builder.CreateFile("docx");