"Larry R Harrison Jr" wrote
I have Access XP, and the following code
which is supposed to assign a JPEG
to an image control:
Me.Image9.Picture =
"F:\Pictures\CP775_SonyDSCP50\FingerRockNight_Resi ze.jpg"
I get this error though:
microsoft access dont' supoort the format of the file
The graphics filters have to be installed to display JPEG in Image controls.
If they were not, then you'd get a similar message. I can't remember from my
installation of Office XP, but in some past versions, they were not
installed by default (so you had to do a custom or complete install). That
may or may not be the problem, but it is what I'd check first.
And, as you questioned on the other response, no separate "image processing
program" is involved with displaying in an Image control.
If you haven't seen it/them already, 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.
And, if you get the same error running the example of "external files", then
almost certainly, it is an installation problem.
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.