Re: JPG, OLE, Questions on how to best use images in ACCESS

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



First you can export all of the embedded JPG images to disk. See:
http://www.lebans.com/oletodisk.htm
NEW - Apr. 14/2002 A2KExportOLEtoJPEG.zip A2K ONLY! This version
saves the entire contents of a table containing OLE Object Images to
disk based Jpeg files. User selectable compression rate. Version 1.5

To view Images stored in a folder you need to get the Filename of each
Image linked to a record.
Artvin has a solution here to do this:
http://www.datastrat.com/Download/Picture2K.zip


Place a TextBox control on your form and bind it to the field containing
the Image names. Add a standard Image control(NOT an OLE Frame control)
to your form. Then in the Current event of the Form, use the field now
containing the Image's name to load the JPG into the Image control.
Me.TheNameOfYourImageControl.Picture =
txtNameOfTextBoxControlBoundToImageNames

Take a few minutes to read the KB articles listed here:
http://www.mvps.org/access/forms/frm0030.htm

--

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


"Sissy" <sisnseatle@xxxxxxx> wrote in message
news:B5C8701A-62D0-46DC-9890-B3968AE23D0F@xxxxxxxxxxxxxxxx
> Hello,
> I have questions about using JPG's in an OLE Bound Frame in Access
2003.
>
> First off in my db table where my OLE images are set - some of the
pictures
> show Photoshop and the rest show MS Image Paint..... Why would 1/2 be
one
> program and the rest a different....????
>
> Secondly I have never had a problem inserting images before into my
OLE
> Frame - but now all of a sudden the images are coming up as the file
name and
> the image is not showing?????
>
> Now with reading all the posts - I have come to the conclusion that I
don't
> want to use a OLE to imbed my JPG's into my database records.... This
far I
> have gotten.
>
> BUT I want 1 jpg saved with each record so that it's all together...I
don't
> want a seperate database of the images...
>
> So perhaps I should say what I want to do - and someone tell me if it
is
> possible
>
> Save all my JPG's in a directory on my hard drive... NOT AN ACCESS
DATABASE
> - just a straight folder off the hard drive.
> and in each access record save the URL - or destination of where each
> picture is.... but have the image display when the record comes up. I
don't
> want to see just a path on my form.... I want ACCESS to go out and
search the
> path and view the picture when it finds it? IS THIS POSSIBLE?-- And
if
> this is possible - how is it done without clogging up the space....
>
> I have looked into a product called DBPix 2.0 which I am still trying
to
> understand how it works - my understanding is it imbedds the image but
it
> saves it in a manor that doesn't clog up the file...saves it at a
small size
> in raw binary form.
>
> My problem as it stands right now is I have a 1700 record database in
which
> I have OLE JPG's in place in about 1/2 of the database...I don't want
to
> start over re-inserting all those images.... So whatever I decide -
the
> biggest factor is how to handle all the existing embedded images...
>
> I hope someone can help me in laymans terms.......
> Sissy

.



Relevant Pages

  • Re: A little trouble with a trivially simple form
    ... .jpg pictures are allowed to store as OLE objects? ... Images embedded as OLE ... An Image inserted as an OLE object is no longer the same size as the ... controls at the bottom for viewing summary data. ...
    (microsoft.public.access.forms)
  • Re: Picture
    ... > I want too create a picture database. ... If I use ole objekt I only ... associated with images in OLE Objects. ...
    (comp.databases.ms-access)
  • Re: A little trouble with a trivially simple form
    ... .jpg pictures are allowed to store as OLE objects? ... Images embedded as OLE ... An Image inserted as an OLE object is no longer the same size as the ... controls at the bottom for viewing summary data. ...
    (microsoft.public.access.forms)
  • Re: Heres the Solution - Access doesnt like .jpg files
    ... Jeff please stop creating a new thread each time you post but rather ... There is absolutely no need to convert your Images from JPG to BMP. ... Apparently, .jpg, gif, and other formats do NOT work> with Access 2003 unless you want to deal with many other issues. ... > "What to do when you see file names instead of images in your Access> database ...
    (microsoft.public.access.reports)
  • Re: images in reports
    ... > choose "ole". ... bloat, and some other problems, associated with images in OLE Objects. ... If you are printing the images in reports, to avoid memory leakage, you ... Memory" error that can popup when printing image intensive reports. ...
    (microsoft.public.access.reports)