Report code - image load

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dan Kean

    #1

    Report code - image load

    Hi all,

    I'm trying to load an image from a filename in a record when a report is
    opened, when building the code under format it doesnt allow me to select
    path/picture to assign it - any ideas?

    Kind thanx for helpers

    Dan


  • Rog

    #2
    Re: Report code - image load

    Do you have an image for each record? In that case, let's say you have
    a field called BadgeNumber and the photos are located in D:\photos and
    are named nnnn.jpg. Put an empty image on your report detail and call
    it imgPhoto. In the format event of the report detail, put the
    following code.

    If not isnull(BadgeNum ber) then
    imgPhoto.Pictur e = "d:\photos\ " & Format(BadgeNum ber, "0000") &
    ".jpg"
    end if

    Comment

    Working...