NewFile

Method of IApplication

Creates a new file and returns reference to it

  • BSTR strPath = "" (optional)
  • BSTR strContent = "" (optional)
  • VARIANT Syntax (optional)
  • long nEncoding = 0 (optional)

Return Value

JavaScript

var ppDocument = Application.NewFile(strPath, strContent, Syntax, nEncoding);

Visual Basic Script

ppDocument = Application.NewFile strPath, strContent, Syntax, nEncoding

C++

CComPtr<IDocument> pDocument;
HRESULT hr = Application.NewFile(strPath, strContent, Syntax, nEncoding, &pDocument);