image linked to a report

D

-DwayneWade

Hi,

I want to put a image in my report header and I got 20+ reports
have the same header. What is the best way to implement this so that if I
change the image, I don't need to do 20+ times processing? Thanks.
 
0

009SteveJobs

How do you create a image link to an external file so that whenever I change
the image, it will reflect on the report? Thanks.
 
D

Duane Hookom

You store the path to your image in a field "ImageName" so the value might
be something like:
"H:\Data\Images\MySnout.jpg"
Add an image control to your report. Add a text box "txtImageName" to your
report's section.
Then in the On Format event of the section of the report containing your
image control, add code like:

If Len(Dir(Me.txtImageName))>0 Then
Me.imgControlName.Picture = Me.txtImageName
Me.imgControlName.Visible = True
Else
Me.imgControlName.Visible = False
End If
 
0

-01SteveJobs

When I add an image control to the report, it automatically asks me for the
image file and then embedded the file. How can I bound it to a field in a
table? THanks.
 
0

-003KobeBrian

I don't understand how this can accomplish what I want. I want to link the
image in a report from a table or a path. But I am getting now is the
picture imported to the report. If I have one same image on 20 report
header and if I change the image, then I need to import 20 times in the
report header. Can you please help? Thanks.
 
D

Duane Hookom

What is the code that you used? How about some field and control names from
your report? What were your results?
 
0

-003KobeBrian

In fact, I didn't use any code. I simply create an image control in the
report and it asked me for the file to be displayed and get imported to the
report. So next time if I change the image, I need to re-import the image
file again.
 
0

-003KobeBrian

Duane,

I got it now. Thanks for your help.


-003KobeBrian said:
In fact, I didn't use any code. I simply create an image control in the
report and it asked me for the file to be displayed and get imported to
the report. So next time if I change the image, I need to re-import the
image file again.
 

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