By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,604 Members | 858 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,604 IT Pros & Developers. It's quick & easy.

Pictures in reports in Access 2002

P: n/a
Hello all,

I have a database of links to bitmaps, eg c:/pic/001.bmp, and I want
to display the pictures in a report. Is this possible at all?

Thanks for any info,

Tony Lennard
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Tony Lennard wrote:
Hello all,

I have a database of links to bitmaps, eg c:/pic/001.bmp, and I want
to display the pictures in a report. Is this possible at all?

Thanks for any info,

Tony Lennard


Put an Image control (called say "imgMyPic") in the report's detail section:

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
imgMyPic.Picture = [MyPictureFieldName]
End Sub

--

\\\\\\
\\ \\ Windows is searching
\ \ For your sig.
\ \ Please Wait.
\__\

Nov 13 '05 #2

P: n/a
"Tony Lennard" wrote
I have a database of links to bitmaps, eg
c:/pic/001.bmp, and I want to display the
pictures in a report. Is this possible at all?


The sample imaging databases at http://accdevel.tripod.com illustrate three
approaches to handling images in Access, and the download includes an
article discussing considerations in choosing an approach. Two of the
approaches do not use OLE Objects and, thus, avoid the database bloat, and
some other problems, associated with images in OLE Objects.

If you are printing compressed images in reports, to avoid memory leakage,
you should also see MVP Stephen Lebans'
http://www.lebans.com/printfailures.htm. PrintFailure.zip is an Access97 MDB
containing a report that fails during the Access formatting process prior to
being spooled to the Printer Driver. This MDB also contains code showing how
to convert the contents of the Image control to a Bitmap file prior to
printing. This helps alleviate the "Out of Memory" error that can popup when
printing image intensive reports.

Larry Linson
Microsoft Access MVP
Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.