OnAppOpenDocument Method

The client application is responsible for implementing an OnAppOpenDocument event handler for some of the supported FileNet Application Integration commands. This event handler method should open the specified document using the application's native open capability. When the event handler is not implemented, the document will be opened using the Microsoft® Windows operating system shell instead.

Example
The following fragment is taken from the Add-In Sample Application.


HRESULT __stdcall CEventHandler::OnAppOpenDocument(BSTR fileName)
{
   // Update the document from the file contents.
   HRESULT hResult = m_pDocument->UpdateDocument(fileName);
   return hResult;
}
Parameters
bstrFileName - [in] Required BSTR, which specifies the document to open.
Return
The OnAppOpenDocument event handler method should return an HRESULT value of S_OK when successful.