display image problem

  • Thread starter Diana Criscione
  • Start date
D

Diana Criscione

I have an application that has a form with code that allows the user to
choose pictures to add to the database (file path only) and then display the
selected image on the form. I am using the API code from the Access Web as
suggested by many MVPs on this forum to allow the user to select the picture
file. It works beautifully for this app but we recently ran into a strange
situation.

I am using InstallShield Express to create an installation for my app and
have included the Access Runtime, DAO 3.6, and ADO 2.5 as required by my
references in the app. However, the user's machine must have IE in order to
operate another portion of my app where I am using a browser control, but I
am not including that in my installation.

We recently installed the app on a Windows machine that did not have any
Office products on it (instead it had WordPerfect) but did have IE. The
problem was that the pictures would no longer display on the form. We could
get the open dialog to select a picture but the image would never display.
We then installed the app on three other machines (which had Office products
on them) and the app worked fine.

Am I missing some library that should be included in my installation in
these circumstances? What would cause this oddity?

Thanks for any help!
 
D

Diana Criscione

Stephen,

I've had a chance to look at your sample and I'm a bit confused. As far as
I can tell, the code is only calling the GDI+ when trying to display TIF or
PNG files. The code to display JPG or GIF is just using the LoadPicture
function. The files we were having trouble with were all JPG files. Am I
missing something? I apologize for being dense here.

Thanks again in advance!
Diana
 
S

Stephen Lebans

As it states on the Web page, you only need to use the GDI+ version if
you are loading TIF files. It also mentions that the GDI DLL is an
integral part of WIndows XP.

What exactly is your issue with my code?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
V

Victor Torres

Hi Stephen. Before I ask you what I need I want to say that I beleive that
you are one of the greatest Access master here. Saying this I just want to
know how can I use the http://www.lebans.com/loadjpeggif.htm to record the
picture in a database. Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top