Placing a OLE image in a Report

  • Thread starter Thread starter isitus
  • Start date Start date
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
 
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
 
Back
Top