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. ====== OpenFileEx ====== Method of [[:scripting:api:application:start|IApplication]] ===== Description ===== Opens an existing file with or w/o file dialog, using specific viewer (selected by document 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_BOOL|VARIANT_BOOL]] **bInteractive** = VARIANT_FALSE (optional) ==== Return Value ==== * [[:scripting:api:base-document:start|IBaseDocument]] **ppDocument** ===== Syntax ===== ==== JavaScript ==== <code javascript> var ppDocument = Application.OpenFileEx(strDocumentType, strPath, bInteractive); </code>==== Visual Basic Script ==== <code vb> ppDocument = Application.OpenFileEx strDocumentType, strPath, bInteractive </code>==== C++ ==== <code cpp> CComPtr<IBaseDocument> pDocument; HRESULT hr = Application.OpenFileEx(strDocumentType, strPath, bInteractive, &pDocument); </code>===== See Also ===== [[:scripting:api:application:start|IApplication]] ~~NOTOC~~