Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== NewFileEx ====== Method of [[:scripting:api:application:start|IApplication]] ===== Description ===== Creates a new file of specific type and returns reference to it ===== Parameters ===== * [[scripting:api:data-type:BSTR|BSTR]] **strDocumentType** * [[scripting:api:data-type:BSTR|BSTR]] **strPath** = %%""%% (optional) * [[scripting:api:data-type:VARIANT|VARIANT]] **vContent** (optional) ==== Return Value ==== * [[:scripting:api:base-document:start|IBaseDocument]] **ppDocument** ===== Syntax ===== ==== JavaScript ==== <code javascript> var ppDocument = Application.NewFileEx(strDocumentType, strPath, vContent); </code>==== Visual Basic Script ==== <code vb> ppDocument = Application.NewFileEx strDocumentType, strPath, vContent </code>==== C++ ==== <code cpp> CComPtr<IBaseDocument> pDocument; HRESULT hr = Application.NewFileEx(strDocumentType, strPath, vContent, &pDocument); </code>===== See Also ===== [[:scripting:api:application:start|IApplication]] ~~NOTOC~~