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