Method of IApplication
Opens an existing file with or w/o file dialog, using specific viewer (selected by document type) and returns reference to it
var ppDocument = Application.OpenFileEx(strDocumentType, strPath, bInteractive);
ppDocument = Application.OpenFileEx strDocumentType, strPath, bInteractive
CComPtr<IBaseDocument> pDocument; HRESULT hr = Application.OpenFileEx(strDocumentType, strPath, bInteractive, &pDocument);