scripting:api:file-handler:create

Create

Method of IFileHandler

Called when new file to be created

  • BSTR strDocumentType = "" (optional)
  • VARIANT vContent (optional)
var ppDocument = FileHandler.Create(strDocumentType, vContent);

==== Visual Basic Script ====

ppDocument = FileHandler.Create strDocumentType, vContent

==== C++ ====

CComPtr<IExternalDocument> pDocument;
HRESULT hr = FileHandler.Create(strDocumentType, vContent, &pDocument);

===== See Also ===== IFileHandler