472,144 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,144 software developers and data experts.

Can you display thumbnails on form?

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
3 10348
"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
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
"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.

Similar topics

1 post views Thread by Mr Utkal Ranjan Pradhan | last post: by
2 posts views Thread by Bernie Yaeger | last post: by
3 posts views Thread by Brett Romero | last post: by
reply views Thread by yasker | last post: by
1 post views Thread by Sjef | last post: by
reply views Thread by Saiars | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.