====== Create ======
Method of [[:scripting:api:file-handler:start|IFileHandler]]
===== Description =====
Called when new file to be created
===== Parameters =====
* [[scripting:api:data-type:BSTR|BSTR]] **strDocumentType** = %%""%% (optional)
* [[scripting:api:data-type:VARIANT|VARIANT]] **vContent** (optional)
==== Return Value ====
* [[:scripting:api:external-document:start|IExternalDocument]] **ppDocument**
===== Syntax =====
==== JavaScript ====
var ppDocument = FileHandler.Create(strDocumentType, vContent);
==== Visual Basic Script ====
ppDocument = FileHandler.Create strDocumentType, vContent
==== C++ ====
CComPtr pDocument;
HRESULT hr = FileHandler.Create(strDocumentType, vContent, &pDocument);
===== See Also =====
[[:scripting:api:file-handler:start|IFileHandler]]
~~NOTOC~~