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

Trying To View JPEGS: Microsoft Access Doesn't Support The format of the file

P: n/a
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

etc etc. The file is a JPEG, it's only about 80K in size.

I'm trying to use Access to be able to browse the images in a directory but
I'm stuck at this point.

Tips?

LRH
Nov 13 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Użytkownik "Larry R Harrison Jr" <no***@noone.com> napisał w wiadomości
news:Ea1Qc.2741$yh.516@fed1read05...
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

etc etc. The file is a JPEG, it's only about 80K in size.

I'm trying to use Access to be able to browse the images in a directory but I'm stuck at this point.

Tips?

LRH


Not Access but Windows can't recognize this file format. You should install
a graphic programm, which recognizes this format.

--

Greetings

Dariusz Myśliwiec
Nov 13 '05 #2

P: n/a

"Gonty" <bl******@poczta.onet.pl> wrote in message
news:ce**********@news.onet.pl...
Not Access but Windows can't recognize this file format. You should install a graphic programm, which recognizes this format.


Huh?
Nov 13 '05 #3

P: n/a
"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.


Nov 13 '05 #4

P: n/a
Thanks. I did that, got it to work.

However, one thing--is there a way to "downsize" the JPEG for viewing? They
are 5 megapixel files at full-size, and I'm just trying to develop this as a
way to view them and them "mark" them for usage later (by recording their
filepath in a table name).

LRH
"Larry Linson" <bo*****@localhost.not> wrote in message
news:NB*************@nwrddc03.gnilink.net...
"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.



Nov 13 '05 #5

P: n/a
I mostly use Paint Shop Pro to manipulate images, or one of several other
image editors, including some that have come with Microsoft Office editions
in the past. As far as I know, there's nothing in Access itself to reduce
the size of a JPG image; and reducing the size in an image editor will
reduce the quality as well -- so work only on copies of your image files
until you are happy with the results.

Larry Linson
Microsoft Access MVP

"Larry R Harrison Jr" <no***@noone.com> wrote in message
news:qVaQc.2943$yh.1700@fed1read05...
Thanks. I did that, got it to work.

However, one thing--is there a way to "downsize" the JPEG for viewing? They are 5 megapixel files at full-size, and I'm just trying to develop this as a way to view them and them "mark" them for usage later (by recording their
filepath in a table name).

LRH
"Larry Linson" <bo*****@localhost.not> wrote in message
news:NB*************@nwrddc03.gnilink.net...
"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.




Nov 13 '05 #6

P: n/a
Thanks for the reply Mr Larry Linson. Actually I got the desired effort
simply by changing the properties of the Image Control.

I changed Size Mode from "Clip" to "Zoom."

Maybe I didn't clarify--I didn't want it resaving the image with the new
size, I merely wanted it to resize on the screen while viewing--not change
the size and resave.

Thanks just the same.

Yes I do use full-blown image editors most of the time. I was just trying to
create something which would let me wife browse the photo collection and
"flag" certain photos for review later on. It creates a table with the
filename (and path) and it makes copies of the photos in the "Temp" folder
for her. Yes there are better ways, but those better ways might interfere
with settings I've made for my own usage; this way, there's no
"cross-contamination."

LRH
Nov 13 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.