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

Can you display thumbnails on form?

P: n/a
I have a client who would like to have several pictures associated
with one system. I have read about storing only the pathname to save
OLE overhead and have set-up a form for my client to browse/add one
picture at a time to a system. Now he would like to 'view' all of the
thumbnails associated with any system on a single form.

I can setup a main/subform scenario, but how do I show all of the
pictures as thumbnails. I was using the unbound OLE control to show
one at a time - can I somehow loop through several to show at once?
Can the user double-click on a picture to bring up its application?
Thanks,
S. Allsopp
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"RAllsopp" wrote
I have a client who would like to have
several pictures associated with one system.
I have read about storing only the pathname
to save OLE overhead and have set-up a
form for my client to browse/add one
picture at a time to a system. Now he would
like to 'view' all of the thumbnails associated
with any system on a single form.

I can setup a main/subform scenario, but how
do I show all of the pictures as thumbnails. I
was using the unbound OLE control to show
one at a time - can I somehow loop through
several to show at once?
A form with several Image or OLE controls will be required to show the
thumbnails. One of the difficulties with saving pictures as OLE Objects is
that Access and the imaging software registered for the image file type
create a bitmap thumbnail to show in a small control that you can double
click to open the registered imaging software. But, another problem is, that
even if you specify "show thumbnail" in the control's properties, you are
"at the mercy" of whatever software the user has registered -- and not all
of them will display a thumbnail.

My best luck has been with Image controls. That approach is similar to the
one you are using with unbound OLE frames. You'll have to write code to fill
the controls for the user's multiple thumbnail display and code to navigate
through the saved images, too.
Can the user double-click on a picture to
bring up its application?


This is a feature of the OLE Controls. It would be possible, I believe, for
you to put code in the double-click event of an Image control to simulate
this using Windows APIs.

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.

Good luck with your database application.

Larry Linson
Microsoft Access MVP
Nov 13 '05 #2

P: n/a
Thanks for your reply. I tried working with the frmPictureDisplay
from tripod.com and it seems to work fine for displaying a single
picture at a time in a separate window. I developed a different
window where my user can add pictures to a specific system. He may
want more than one picture for each system. It seems to take a long
time to bring the pictures in, but it works fine on my Dell laptop
using Dell Expert Picture. However, on the clients machine the
pictures don't come up at all. They have their files associated with
Internet Explorer, but even when I change it to Microsoft Imaging, I
still don't see the pictures. Is there some problem with the
CreateLink or Action values? Thanks,
S. Allsopp
"Larry Linson" <bo*****@localhost.not> wrote in message news:<IdH1d.9170$%O5.5383@trnddc07>...
"RAllsopp" wrote
> I have a client who would like to have
> several pictures associated with one system.
> I have read about storing only the pathname
> to save OLE overhead and have set-up a
> form for my client to browse/add one
> picture at a time to a system. Now he would
> like to 'view' all of the thumbnails associated
> with any system on a single form.
>
> I can setup a main/subform scenario, but how
> do I show all of the pictures as thumbnails. I
> was using the unbound OLE control to show
> one at a time - can I somehow loop through
> several to show at once?


A form with several Image or OLE controls will be required to show the
thumbnails. One of the difficulties with saving pictures as OLE Objects is
that Access and the imaging software registered for the image file type
create a bitmap thumbnail to show in a small control that you can double
click to open the registered imaging software. But, another problem is, that
even if you specify "show thumbnail" in the control's properties, you are
"at the mercy" of whatever software the user has registered -- and not all
of them will display a thumbnail.

My best luck has been with Image controls. That approach is similar to the
one you are using with unbound OLE frames. You'll have to write code to fill
the controls for the user's multiple thumbnail display and code to navigate
through the saved images, too.
> Can the user double-click on a picture to
> bring up its application?


This is a feature of the OLE Controls. It would be possible, I believe, for
you to put code in the double-click event of an Image control to simulate
this using Windows APIs.

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.

Good luck with your database application.

Larry Linson
Microsoft Access MVP

Nov 13 '05 #3

P: n/a
"RAllsopp" wrote
However, on the clients machine the
pictures don't come up at all. They have
their files associated with Internet Explorer,
but even when I change it to Microsoft
Imaging, I still don't see the pictures. Is
there some problem with the
CreateLink or Action values?


Because of database bloat, I don't use OLE frames to display images, so I am
not a good person to assist in debugging problems with that approach. I have
used that approach very rarely in the past, the most recent time being when
I did the imaging examples.

Perhaps someone with better experience in that situation will step in and be
able to assist. Frankly, in addition to bloating, I found using the OLE
Object and OLE frames (as you seem to be also finding) more than a little
"flakey".

Larry Linson
Microsoft Access MVP
Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.