images in reports

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to make a report that has an image for each record ...

what's the best way to do this ... and what is the best image format for
access?
 
Sal,

In your table where you have the records, in design mode, add a field and
under type, choose "ole". Open the table and right click on new field. Pick
'insert object". A dialog box will come up allowing you to create a new file
or choose an existing file. There are also several options on how to store
the file. The dialog box gives a fairly decent explanation of the different
options as you click in the options boxes. Once you have the ole object
stored in your table, you should be able to go to your report and pull that
field from the field list onto your report. As far as image type goes, an
access box I have here says to use jpeg for pictures. Other types, I don't
know.
 
In your table where you have the records,
in design mode, add a field and under type,
choose "ole". Open the table and right
click on new field. Pick 'insert object". A
dialog box will come up allowing you to
create a new file or . . .

What you describe is only one of several approaches, and it is often the
least desirable. 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 the 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
 
Back
Top