Dynamic image in report

  • Thread starter Alessandro Di Rago
  • Start date
A

Alessandro Di Rago

I have a table it contains a text filed with a image's path. After there is
a report associated to table. I want see the image store in the text field.
To open report there is the follow routine:

"prova" is field's name
"Immagine1" is image object of the report, where will be view the image

Private Sub Report_Open(Cancel As Integer)
Immagine1.Picture = prova
End Sub

In this way i not see the image. How i can view a dynamic image?
 
G

giannis

Set the Format Event of the "Details" section of the report to the following
Event Procedure:

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me![Immagine1].picture = me![prova]
End Sub

(I found this from knownlenge base of Microsoft)
 
A

Alessandro Di Rago

giannis said:
Set the Format Event of the "Details" section of the report to the following
Event Procedure:

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me![Immagine1].picture = me![prova]
End Sub

Thank you
 

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