====== 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 ====
var ppDocument = Application.NewFileEx(strDocumentType, strPath, vContent);
==== Visual Basic Script ====
ppDocument = Application.NewFileEx strDocumentType, strPath, vContent
==== C++ ====
CComPtr pDocument;
HRESULT hr = Application.NewFileEx(strDocumentType, strPath, vContent, &pDocument);
===== See Also =====
[[:scripting:api:application:start|IApplication]]
~~NOTOC~~