The information in this article applies to:
SYMPTOMSWhen an Active Document is viewed in Internet Explorer and the document is printed using the IOLECommandTarget command mechanism, the Active Document server appears to hang. CAUSEThe Active Document View window is disabled during the print operation and not enabled on completion. RESOLUTION
Override CView::OnFilePrint(), the default handler for ID_FILE_PRINT, in
the Active Document server CView-derived class and insert a call to
EnableWindow() as follows:
NOTE: Make sure you call the base-class OnFilePrint() before the call to EnableWindow(). ClassWizard does not insert this call for you. MORE INFORMATION
Internet Explorer issues the Print command to the Active Document server
through a call to IOleCommandTarget::Exec using the OLECMDID_PRINT
identifier. The BINDSCRB sample code demonstrates mapping this command to
ID_FILE_PRINT by adding the ON_OLECMD_PRINT macro to the document's OLECMD
map.
Steps to Reproduce Behavior
REFERENCESQ180152 HOWTO: Print from an Active Document Server Additional query words: DocObject server DocObj Active Document
Keywords : kbole kbMFC kbVC kbIE500 AXSDKDocObjects AXSDKIEAutomation |
Last Reviewed: October 6, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |