Display a photo on a report when the photos are in a directory?

D

DontKnow

Hi Guys,

I want to be able to display a photo (.JPG) on a report. I have all of the
Photos outside of the database to prevent excessicve bloating and to maintain
the size of the database. I currently am able to display the photo on a form
but would like to know how to do it on a report?

is there a particular method I need to utilise. ??

Please help me!

Cheers,
 
P

Paolo

Hi DontKnow,

put on your report a void image control that we can call for example
img2dsply.
Lets say the full path and the name of your image is in a field called
img_path e.g. "c:\images\img1.jpg"

On the on activate event of your report add this code

If Not IsNull(img_path) Then
img2dsply.Picture = img_path
Else
img2dsply.Picture = ""
End If

HTH Paolo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top