GetDocument

Method of IApplication

Returns opened document, if one exist

Return Value

JavaScript

var ppDocument = Application.GetDocument(strPathName);

Visual Basic Script

ppDocument = Application.GetDocument strPathName

C++

CComPtr<IDocument> pDocument;
HRESULT hr = Application.GetDocument(strPathName, &pDocument);