Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populate an Unbound image frame from an Access Table 1

Status
Not open for further replies.

dRahme

Technical User
Jun 24, 2004
286
US
Hi, I posted this question in the Access Reports forum and while an alternative solution was posted, I am still curious as to if this can be done.

I have an Ole field in an Access table with one bitmap embedded. What I would like to do is to be able to read the contents of the table field into an unbound image control on a report.

This is more of a curiosity of mine than anything else. Bound forms, subreports all work and I use them but I would like to know if this is possible and how one would do it. If not, no big deal either. I would just like to know.

Thanks, dRahme
 
No, but thanks for the links. As I said, I was not interested in linking to an external file which I can do, but reading a stored image in an access table and populating an unbound image control with it. Apparently it cannot be done.

Thanks anyway,

dRahme
 

I am sure it can be done, but why? If it is in the db already why not stick the image control within a subform and pick the appropriate record? Seems a heck of a lot easier.

For some bizarre reason if you really had to do this (and I can think of no good reason), you would probably have to do BLOB to file and then File to BLOB code.

Could you get away with a imagelist?
 
The problem is probably that in an Access Ole field is also saved the information about the application it was created with.
So, using an Ole control to hold the object and then automating a process to save the picture in a file through the the application which created it, and then reading this file into the image control, could be an option.

So, storing it in a long binary field from the start, or just a path, is easier to work with.
 
I thought the reply I posted in the other forum worked for you?

"Don't be irreplaceable. If you can't be replaced, you can't be promoted."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top