The IMAPIViewAdviseSink::OnPrint method notifies the form viewer of the printing status of a form.
See IMAPIViewAdviseSink : IUnknown.
HRESULT OnPrint(
ULONG dwPageNumber,
HRESULT hrStatus
);
Form objects call the IMAPIViewAdviseSink::OnPrint method while printing to inform the viewer of printing progress.
If the printing job involves multiple pages, you can call OnPrint after each page is printed. Set dwPageNumber to the page currently being printed and hrStatus to S_OK. When the printing job is complete, call OnPrint with dwPageNumber set to the last page printed and hrStatus set to S_FALSE.
For more information about form notifications, see Sending and Receiving Form Notifications.