473,554 Members | 4,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10642
"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.zi p 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 frmPictureDispl ay
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*****@localh ost.not> wrote in message news:<IdH1d.917 0$%O5.5383@trnd dc07>...
"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.zi p 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2323
by: Nick | last post by:
Hi, I am tring to display a form that does not show in either the task bar or when the user alt-tabs. The form is running full screen and is set to have no border. Nick
1
1584
by: Mr Utkal Ranjan Pradhan | last post by:
Hi Friends I want to develop a windows service application, which will open a port on the machine and constantly it will listen from that port. And when any data comes to that port I want to display a Form with the data that has been receieved by the port. So plz guide me to do that. Can it be possible to display a form when any data comes...
2
1380
by: Bernie Yaeger | last post by:
I have developed a .dll to display a form that controls a simple routine. Oddly, you can't use messagebox.show unless you do one of two things: either use an imports system.windows.forms or system.windows.forms.messagebox.show etc Now this is strange, because the form inherits as below: Inherits System.Windows.Forms.Form
3
16371
by: Brett Romero | last post by:
My application start like this: frmMaster MainForm = new frmMaster(); System.Windows.Forms.Application.Run(MainForm); The flow is that MainForm shows then a SecondForm shows after the user does something. This is an MDI app so SecondForm needs to always be inside MainForm. There are times I need to automatically load the app and...
0
1357
by: yasker | last post by:
Hi, I got a problem in display a sub form. My app contains two form: main and sub. I want sub form display before main form, to provide some information to it. I use a NotifyIcon to activity sub form. In main form's loading event( and doubleclick event of notifyicon ), i wrote something like: notifyIcon.Visible = false;
5
18401
by: Paul | last post by:
Is it possible to display a form inside another form? What component should I use?
4
7602
ak1dnar
by: ak1dnar | last post by:
I need to display a form dynamically. First i load the page and at that time Login button will display. Nothing else. If some clicks the Login button, then only I want to display the Form. So what will be the best solution for this. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
1
2764
by: Sjef | last post by:
Hallo, is it possible to display thumbnails one after the other with accompagnying caption. I mean: thumbnail 1, thumbnail 2, thumbnail 3 etc end of line continue on next line. I thought: make a div. #thumbnail {
1
2103
by: Zaher Rabah | last post by:
How can I display a form in dialog mode by press any keys in the keybaord in access 2003. This form is used as calculater "For fast calculate" This is the idea.
1
1239
by: menyki | last post by:
am designing a software. in the software i want the splash to display for sometime, say 1 minute then it will close and the main form will come up. i included timer control in the splash form i designed but my problem is how write the code to close the splash and display next form. please, can someone help and tell me how i will go about it.
0
7620
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7541
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7821
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8057
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7586
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6172
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5452
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3591
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
861
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.