Reports in HTML with Images

P

Patrick Wolf

Hi,

I've created an Access Report with Images (displayed via the Image control).

The images are on the harddrive and in the Format event I assign the correct image path to the image control.

Private Sub GroupHeaderShot_Format(Cancel As Integer, FormatCount As Integer)
Image.Picture = strPath & Me!pstShotImageFileName
End Sub

This works very nice except when I export the Report to HTML.
There is nothing in the html like
<img src="abc.gif">.

Does anyone know how to create Reports with Access and export them to HTML with Image Tags?

Thanks a lot
Patrick
 
A

AndresW

Patrick

I wrote an article on HTML and Access reports for Smart Access, you can find it free of charge on MSDN.microsoft.com, at the following url:

http://msdn.microsoft.com/office/un...pull=/library/en-us/dnsmart05/html/sa05a6.asp

To be honest, the article will not answer your immediate question. However, depending on what you are doing with the HTML file and how complex your reports are, you may find that my technique is useful for your purposes.

HIHWYT (hope I haven't wasted your time)

Andrew Wrigley
Hi,

I've created an Access Report with Images (displayed via the Image control).

The images are on the harddrive and in the Format event I assign the correct image path to the image control.

Private Sub GroupHeaderShot_Format(Cancel As Integer, FormatCount As Integer)
Image.Picture = strPath & Me!pstShotImageFileName
End Sub

This works very nice except when I export the Report to HTML.
There is nothing in the html like
<img src="abc.gif">.

Does anyone know how to create Reports with Access and export them to HTML with Image Tags?

Thanks a lot
Patrick
 
Top