BUG: ADO Bound OLE Control Does Not Display Bitmap
Article ID: 191103
Article Last Modified on 3/2/2005
APPLIES TO
- Microsoft Visual Basic 6.0 Enterprise Edition
- Microsoft ActiveX Data Objects 2.0
- Microsoft ActiveX Data Objects 2.1 Service Pack 2
- Microsoft ActiveX Data Objects 2.5
This article was previously published under Q191103
SYMPTOMS
When you try to set the DataSource property for an OLE Control to an ADO
Data Control, the following message appears:
No compatible data source was found for this control. Please add an
intrinsic Data Control or a Remote Data Control to the form.
CAUSE
The OLE Container Control is not designed to work with the ADO Data Control
or its underlying IRowSet interface.
RESOLUTION
You can use the AppendChunk and GetChunk methods to store the data in a
long binary data type. This bypasses the problem of the OLE Header
information. You can also workaround this problem by using the standard
Data Control bound to an OLE Container Control to display the BMP.
STATUS
This behavior is by design.
REFERENCES
For additional information, please click the article number below
to view the article in the Microsoft Knowledge Base:
194975 HOWTO: Sample Functions Demonstrating GetChunk and AppendChunk
Keywords: kbbug kbpending KB191103