473,703 Members | 3,348 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open Common Dialog with thumbnail view

Hi all.

When I need to search for pictures, I always have too choose thumbnail-view manually.
Is it possible to open the common dialog in thumbnail-view programmaticall y?
Example ??
At the moment I am using Ken Getz' code. at http://www.mvps.org/access/api/api0001.htm

Thanks
Arno R
Nov 21 '07 #1
8 4695
Arno R wrote:
Hi all.

When I need to search for pictures, I always have too choose thumbnail-view manually.
Is it possible to open the common dialog in thumbnail-view programmaticall y?
Example ??
At the moment I am using Ken Getz' code. at http://www.mvps.org/access/api/api0001.htm

Thanks
Arno R
I like Irfanview. http://www.irfanview.com/. I don't use it within my
Access apps but it's great for viewing pictures and thumbnails.
Nov 21 '07 #2

"Salad" <oi*@vinegar.co mschreef in bericht news:13******** *****@corp.supe rnews.com...
Arno R wrote:
>Hi all.

When I need to search for pictures, I always have too choose thumbnail-view manually.
Is it possible to open the common dialog in thumbnail-view programmaticall y?
Example ??
At the moment I am using Ken Getz' code. at http://www.mvps.org/access/api/api0001.htm

Thanks
Arno R
I like Irfanview. http://www.irfanview.com/. I don't use it within my
Access apps but it's great for viewing pictures and thumbnails.

Can I use Irfanview from within Access to select (the path to) pictures?
I need the pictures in Access of course. I need to save the path to Images for certain records.
So the common dialog is fine, but it would be nice if it would open in thumbnail-view.

Btw: I use ACDSee for browsing/viewing pictures.

Arno R
Nov 21 '07 #3
Arno R wrote:
"Salad" <oi*@vinegar.co mschreef in bericht news:13******** *****@corp.supe rnews.com...
>>Arno R wrote:
>>>Hi all.

When I need to search for pictures, I always have too choose thumbnail-view manually.
Is it possible to open the common dialog in thumbnail-view programmaticall y?
Example ??
At the moment I am using Ken Getz' code. at http://www.mvps.org/access/api/api0001.htm

Thanks
Arno R

I like Irfanview. http://www.irfanview.com/. I don't use it within my
Access apps but it's great for viewing pictures and thumbnails.

Can I use Irfanview from within Access to select (the path to) pictures?
I need the pictures in Access of course. I need to save the path to Images for certain records.
So the common dialog is fine, but it would be nice if it would open in thumbnail-view.
I don't see why not. I upgraded my old version to see what the most
current command line options are. Here are 3 of them
/slideshow=txtfi le - play slideshow with the files from 'txtfile'
/slideshow=folde r - play slideshow with the files from 'folder'
/thumbs - force thumbnails

I suppose you could make a command line like
i_view32.exe /slideshow=C:\Te st /thumbs
to display all the image files in C:\Test as Thumbnails.

Irfanview is a small program and quick to download. There's so many
command line options (see the help topic on it) that it should be able
to do what you like. I suppose you'd need Shell() to open it with the
command line options tho. I'm not sure why you need to store the
pictures in an Access table, maybe A2007 has good control of that.
Btw: I use ACDSee for browsing/viewing pictures.
Probably has some similarites to Ifranview. Irfanview is freeware
(non-commercial use). If you press the About button in the program is
says "This copy of Irfanview is registered to You". No time/eval periods.
>
Arno R
Nov 21 '07 #4

"Salad" <oi*@vinegar.co mschreef in bericht news:13******** *****@corp.supe rnews.com...
Arno R wrote:
>"Salad" <oi*@vinegar.co mschreef in bericht news:13******** *****@corp.supe rnews.com...
>>>Arno R wrote:

Hi all.

When I need to search for pictures, I always have too choose thumbnail-view manually.
Is it possible to open the common dialog in thumbnail-view programmaticall y?
Example ??
At the moment I am using Ken Getz' code. at http://www.mvps.org/access/api/api0001.htm

Thanks
Arno R

I like Irfanview. http://www.irfanview.com/. I don't use it within my
Access apps but it's great for viewing pictures and thumbnails.

Can I use Irfanview from within Access to select (the path to) pictures?
I need the pictures in Access of course. I need to save the path to Images for certain records.
So the common dialog is fine, but it would be nice if it would open in thumbnail-view.
I don't see why not. I upgraded my old version to see what the most
current command line options are. Here are 3 of them
/slideshow=txtfi le - play slideshow with the files from 'txtfile'
/slideshow=folde r - play slideshow with the files from 'folder'
/thumbs - force thumbnails

I suppose you could make a command line like
i_view32.exe /slideshow=C:\Te st /thumbs
to display all the image files in C:\Test as Thumbnails.

Irfanview is a small program and quick to download. There's so many
command line options (see the help topic on it) that it should be able
to do what you like. I suppose you'd need Shell() to open it with the
command line options tho. I'm not sure why you need to store the
pictures in an Access table, maybe A2007 has good control of that.
>Btw: I use ACDSee for browsing/viewing pictures.
Probably has some similarites to Ifranview. Irfanview is freeware
(non-commercial use). If you press the About button in the program is
says "This copy of Irfanview is registered to You". No time/eval periods.
>
Arno R

Well, I might try Irfanview. Not sure how much work that will be...
I'm not sure why you need to store the
pictures in an Access table, maybe A2007 has good control of that.
As I said I only need the *path* to the Image. I am not storing the images themselves.

I wil explain further:
What I am looking for is a 'facility' to make the following easy:
A guy ( a shop owner) gets new goods, takes pictures from his goods, stores these pictures somewhere on his PC and ...
afterwards he adds records of his new goods to his database, and also wants to add (a link to) the pictures ...
I still think that presenting a common dialog to 'pick the pics' is sufficient, but thumbnail-view would be nice.

Thanks
Arno R
Nov 21 '07 #5
Arno R wrote:
"Salad" <oi*@vinegar.co mschreef in bericht news:13******** *****@corp.supe rnews.com...
>>Arno R wrote:

>>>"Salad" <oi*@vinegar.co mschreef in bericht news:13******** *****@corp.supe rnews.com...
Arno R wrote:
>Hi all.
>
>When I need to search for pictures, I always have too choose thumbnail-view manually.
>Is it possible to open the common dialog in thumbnail-view programmaticall y?
>Example ??
>At the moment I am using Ken Getz' code. at http://www.mvps.org/access/api/api0001.htm
>
>Thanks
>Arno R

I like Irfanview. http://www.irfanview.com/. I don't use it within my
Access apps but it's great for viewing pictures and thumbnails.

Can I use Irfanview from within Access to select (the path to) pictures?
I need the pictures in Access of course. I need to save the path to Images for certain records.
So the common dialog is fine, but it would be nice if it would open in thumbnail-view.

I don't see why not. I upgraded my old version to see what the most
current command line options are. Here are 3 of them
/slideshow=txtfi le - play slideshow with the files from 'txtfile'
/slideshow=folde r - play slideshow with the files from 'folder'
/thumbs - force thumbnails

I suppose you could make a command line like
i_view32.exe /slideshow=C:\Te st /thumbs
to display all the image files in C:\Test as Thumbnails.

Irfanview is a small program and quick to download. There's so many
command line options (see the help topic on it) that it should be able
to do what you like. I suppose you'd need Shell() to open it with the
command line options tho. I'm not sure why you need to store the
pictures in an Access table, maybe A2007 has good control of that.

>>>Btw: I use ACDSee for browsing/viewing pictures.

Probably has some similarites to Ifranview. Irfanview is freeware
(non-commercial use). If you press the About button in the program is
says "This copy of Irfanview is registered to You". No time/eval periods.

>>>Arno R

Well, I might try Irfanview. Not sure how much work that will be...

>I'm not sure why you need to store the
pictures in an Access table, maybe A2007 has good control of that.

As I said I only need the *path* to the Image. I am not storing the images themselves.

I wil explain further:
What I am looking for is a 'facility' to make the following easy:
A guy ( a shop owner) gets new goods, takes pictures from his goods, stores these pictures somewhere on his PC and ...
afterwards he adds records of his new goods to his database, and also wants to add (a link to) the pictures ...
I still think that presenting a common dialog to 'pick the pics' is sufficient, but thumbnail-view would be nice.

Thanks
Arno R
I've been playing around with this because its an interesting concept
although I don't fully understand your needs. Not sure if this is
anything you want to do but...I opened up my thumbnail jpgs in Irfanview
and selected a few and had Irfanview make an html page of them. Well,
this converted the jpgs to thumbnail jpg images. I went to the folder
where they were created and deleted the full size pics and html file.

I then created a table in Access...3 fields; ID, PicText (text to define
it), and PicFile (the hyperlink to the thumbnail).

Now I created a form and dropped those three fields into them and
created an image control. In my OnCurrent event my code is
Private Sub Form_Current()
Me.Image6.Pictu re = HyperlinkPart(M e.PicFile, acAddress)
End Sub

As I go through each record (single form) it displays the thumbnail to
the screen. I suppose with a dblclick (no need to show the hyperlink)
and I could call/open the picture. Thus Pic1.jpg is the full size pic,
Pic1T.jpg would be the thumbnail.

There's the old problem with continuous forms...if you had multiple
images (you can see more than 1 record) all images would be the current
image.

You might want to check out Tucows (http://tucows.com) as well. There
might be something there. Perhaps start with "Thumbnail view" for
searching.
Nov 21 '07 #6
Hi,

Arno R wrote:
Hi all.
When I need to search for pictures, I always have too choose
thumbnail-view manually.
Is it possible to open the common dialog in thumbnail-view
programmaticall y?
Example ??
Karsten Pries (a german developer) once created a demo on how to use a
common file dialog with the ability to choose between different kind of
views.

Available views are :
List, Details, Large Icon, Thumbnail, Small Icon and Tile.

He clearly punctuated that it's only tested with AXP and Win XP, and noone
may expect that it can be used with older versions ( maybe you can try
A2000 ) .

I case of interest visit this page:
http://www.kpries.de/index.htm?Entwi...filedialog.htm
(german language only).

There you have to look for the red labeled subsection "Spezialversion " where
you may find this:
Download: comdlgdemoXP.zi p für Windows XP und Access 2002 (XP)

The german readme-file gives some more information, so maybe any translation
service (such as google language tool ) may be a little help.

Regards
Jens
Nov 21 '07 #7

"Jens Schilling" <Je************ ************@fi ssership.deschr eef in bericht news:fi******** *****@news.t-online.com...
Hi,

Arno R wrote:
>Hi all.
When I need to search for pictures, I always have too choose
thumbnail-view manually.
Is it possible to open the common dialog in thumbnail-view
programmatical ly?
Example ??
Karsten Pries (a german developer) once created a demo on how to use a
common file dialog with the ability to choose between different kind of
views.

Available views are :
List, Details, Large Icon, Thumbnail, Small Icon and Tile.

He clearly punctuated that it's only tested with AXP and Win XP, and noone
may expect that it can be used with older versions ( maybe you can try
A2000 ) .

I case of interest visit this page:
http://www.kpries.de/index.htm?Entwi...filedialog.htm
(german language only).

There you have to look for the red labeled subsection "Spezialversion " where
you may find this:
Download: comdlgdemoXP.zi p für Windows XP und Access 2002 (XP)

The german readme-file gives some more information, so maybe any translation
service (such as google language tool ) may be a little help.

Regards
Jens
Thanks much Jens !!
Since I am a 'neighbour' (I live in Holland), I am able to read German.

I will test the code further tomorrow, but I did see it worked in Access 2003 and Win XP.
Quickly converted to Access 2000. It works !!
Converted to Access 97 == Fails on Enum code ... (have to look at that)

Thanks much again !!

Regards,
Arno R
Nov 21 '07 #8
Hi, Neighbour ;-)

Arno R wrote:
>>Is it possible to open the common dialog in thumbnail-view
programmatica lly?
Karsten Pries (a german developer) once created a demo on how to use
a common file dialog with the ability to choose between different
kind of views.
http://www.kpries.de/index.htm?Entwi...filedialog.htm
(german language only).
Since I am a 'neighbour' (I live in Holland), I am able to read
German.
OK, Arno - so it's much easier for you...
Converted to Access 97 == Fails on Enum code ... (have to look at
that)
As you can read in the readme-file next to Enum-problems the
AddressOf-Operator is mentioned.
I my link collection I found a hint to the AddressOf-Operator refering to
Michael Kaplans homepage :

http://www.trigeminal.com/lang/1033/...p?ItemID=19#19

I didn't checked it out but maybe you can find there some information on
that.
And if you got it to run with A97 please let us know.... ;-)

Regards
Jens
Nov 22 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
16222
by: Martin | last post by:
Again drawing on the groups experience:- 1. For general file opening and file saving, using VB6, are there any issues with using the FileOpen and FileSave Common Dialog Boxes? 2. Is using the FileOpen and FileSave Common Dialog Boxes the best way to go in general? 3. For Most of my projects I will be using the same types of data input form and report output form, as discussed here recently. Also, the files that are
1
2606
by: Alisha | last post by:
I'm trying to open the Common Dialog box to allow the user to navigate to a folder and select a file. The users are accessing the application on a single Citrix server, so the enviroment is the same for everyone. This function has been in place for several months and there haven't been any problems until about a week ago. One of my clients is no longer able to open the common dialog box. The application does not throw an error, but the...
1
2886
by: Kanaiya | last post by:
hello i want to show thumbnail image view control which display captured images on this control but in small size. it is possible to add any no. of images in that control. and aslo possible to add event on it. -- With regards, Gangani Kanaiya.
3
1988
by: GrantS | last post by:
I am needing to permit users to select files using the 'Open file' common dialog box. The format of the names of the files are along the names of: GB00((&X.001.jpg I am not able to show these files in the dialog box for selection. I do need to use filters (cannot use (*.*| all files) I tried using the filter *.*.jpg without success. The filter string I have tried is:
10
2751
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a preview DIV) 2. when users close the dialog, the application receives the URL to the selected graphic. 3. the modal dialog lets the users upload a new graphic if the dialog does not present them with one they are already happy with. 4. upon uploading...
4
4238
by: Marco Trapanese | last post by:
Hi! I show an OpenFile Dialog with: dlgOpen.ShowDialog() but I'd like to change the default view among Detail, Thumbnail, Icons, ect. Users change the view mode by this button: http://i15.tinypic.com/48nsol1.jpg I want to do the same from code. How should I do?
1
2441
by: sirimanna | last post by:
I want to know how can i open some text file data using microsoft common dialog control.6 I know how to save text data using microsoft common dialog control.6 code are here, cdlfiles.filter="files(*.srt)\*.ami" cdlfiles.DefaultExt="str" cdlfiles.dialogTitle="save str notepad file" cdlfiles.DialogTitel=cdlOFNOverwritePrompt + cdlOFNPathmustexist on Error GoTo e cdlfiles.showsave
8
3715
by: Janwillem | last post by:
Is there a way to force the wx.FileDialog to show as default the thumbnails vie in stead of list view? thanks, janwillem
3
2841
by: Dylan Parry | last post by:
Hi, I have the following code: private Image _image; public MyImage(string filename) { FileStream file = File.Open(filename, FileMode.Open); _image = Image.FromStream(file);
0
8759
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8966
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7872
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6588
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5922
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4433
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3125
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.