How to print images saved in database records?

jlcastrejon

Registered User.
Local time
Today, 09:24
Joined
Apr 6, 2012
Messages
12
I have created a database which has 2 images for record embedded, the method I have use for this is to link the address were the image is in order to avoid that the database gets slow, the images are displayed on the form but I cant find the way how to embed such images in a report neither how to print them with a button used for such purpose.
:banghead:
 
There is a thing called an IMAGE CONTROL that you place on a report page. When you build the report, you have to put VBA code in the OnFormat event for the section that contains the image control. I'm only guessing, but you probably would have the image in the Details section so your code would be in the Details_OnFormat event. In that event code, you load the file name for the image - or its hyperlink - to the IMAGE property of the image control.
 
Hi Doc_Man,
I really appreciate your help my fiend, I was using something similar at the form but I couldn't get the idea how to use it on the report, thanks to you I got it, and the solution was like this on the code page, over the event Report/Current the code was:

pairDiagram.SetFocus
recordDiagram.Picture = pairDiagram.Text

Thank you very much for your help
JLC
 
Whoops - PICTURE, not IMAGE. I forget some of the obscure property names sometimes. I have to admit I haven't done anything with images in at least five or six years.

Glad you could find a solution from my hint.
 

Users who are viewing this thread

Back
Top Bottom