The information in this article applies to:
SYMPTOMSWhen printing a Web page containing an MFC ActiveX control that persists one or more BLOB properties using PX_Blob, those properties print incorrectly. CAUSE
Internet Explorer, version 4.0 and later, does not currently support persistence of MFC's BLOB properties.
RESOLUTIONThe only known workaround is to convert essential properties away from the BLOB data type, possibly to the BSTR or SAFEARRAY data types. MORE INFORMATION
Closer inspection of the problem by debugging into the MFC implementation of PX_Blob shows that during a print, first the control is asked to save its properties and the IPersistPropertyBag::Write call in CPropbagPropExchange::ExchangeBlobProp succeeds. Then, a new instance of the control is asked to load itself from the saved properties. At that time, the IPersistPropertyBag::Read call in CPropbagPropExchange::ExchangeBlobProp fails because the BLOB property in question does not exist in the property bag. In between the saving and loading of the properties, Internet Explorer has thrown out any BLOB properties.
Steps to Reproduce BehaviorThis problem is easily reproduced in an MFC ActiveX control that uses PX_Blob in the control's DoPropExchange function. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:Q137333 DOC: How to Use the PX_Blob Function Additional query words: kbDSupport
Keywords : kbActiveX kbCtrl kbCtrlCreate kbDHTML kbDSupport |
Last Reviewed: December 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |