Property of IApplication
Active document object
Read-Only Property of type IBaseDocument
var pDocument = Application.ActiveDocument;
pDocument = Application.ActiveDocument
CComPtr<IBaseDocument> pDocument; HRESULT hr = Application.get_ActiveDocument(&pDocument);