Method of IApplication
Creates a new file of specific type and returns reference to it
var ppDocument = Application.NewFileEx(strDocumentType, strPath, vContent);
ppDocument = Application.NewFileEx strDocumentType, strPath, vContent
CComPtr<IBaseDocument> pDocument; HRESULT hr = Application.NewFileEx(strDocumentType, strPath, vContent, &pDocument);