Placing a OLE image in a Report

I

isitus

I'm having trouble getting a table loaded with a path and
filename to print in a report.
The table field will have

"c:\path\image1.jpg"
"c:\path\image2.jpg"
"c:\path\image3.jpg"
....

Now when I print a report I need to call that image back
out of the table and drop it in the report, sequentially
 
S

SA

Isitus:

Add a non-visible control to your report that would contain the path to the
image file. Add it to the section of the report where you want the image to
display. Then from the toolbox, add an Image control to the report and add
one of the images as a default to size things up. Last in the On Print
section of the report that contains the control, add code like this:

If Len(Me!NameOfControlWithFileName) Then
Me!NameOfTheImageControl.Picture = Me!NameOfControlWithFileName
End If
 

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