Open Common Dialog with thumbnail view
Open Common Dialog with thumbnail view
am 21.11.2007 16:01:41 von Arno R
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 =
programmatically?
Example ??
At the moment I am using Ken Getz' code. at =
http://www.mvps.org/access/api/api0001.htm=20
Thanks
Arno R
Re: Open Common Dialog with thumbnail view
am 21.11.2007 17:11:18 von Salad
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 programmatically?
> 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.
Re: Open Common Dialog with thumbnail view
am 21.11.2007 18:28:34 von Arno R
"Salad" schreef in bericht =
news:13k8m56ev0rsb47@corp.supernews.com...
> Arno R wrote:
>> Hi all.
>>=20
>> 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 =
programmatically?
>> Example ??
>> At the moment I am using Ken Getz' code. at =
http://www.mvps.org/access/api/api0001.htm=20
>>=20
>> Thanks
>> Arno R
>=20
> I like Irfanview. http://www.irfanview.com/. I don't use it within =
my=20
> 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
Re: Open Common Dialog with thumbnail view
am 21.11.2007 19:17:26 von Salad
Arno R wrote:
> "Salad" schreef in bericht news:13k8m56ev0rsb47@corp.supernews.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 programmatically?
>>>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=txtfile - play slideshow with the files from 'txtfile'
/slideshow=folder - play slideshow with the files from 'folder'
/thumbs - force thumbnails
I suppose you could make a command line like
i_view32.exe /slideshow=C:\Test /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
Re: Open Common Dialog with thumbnail view
am 21.11.2007 20:04:40 von Arno R
"Salad" schreef in bericht =
news:13k8thn3alnltc2@corp.supernews.com...
> Arno R wrote:
>=20
>> "Salad" schreef in bericht =
news:13k8m56ev0rsb47@corp.supernews.com...
>>=20
>>>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 =
programmatically?
>>>>Example ??
>>>>At the moment I am using Ken Getz' code. at =
http://www.mvps.org/access/api/api0001.htm=20
>>>>
>>>>Thanks
>>>>Arno R
>>>
>>>I like Irfanview. http://www.irfanview.com/. I don't use it within =
my=20
>>>Access apps but it's great for viewing pictures and thumbnails.
>>=20
>>=20
>>=20
>> 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.
>=20
> I don't see why not. I upgraded my old version to see what the most=20
> current command line options are. Here are 3 of them
> /slideshow=3Dtxtfile - play slideshow with the files from 'txtfile'
> /slideshow=3Dfolder - play slideshow with the files from 'folder'
> /thumbs - force thumbnails
>=20
> I suppose you could make a command line like
> i_view32.exe /slideshow=3DC:\Test /thumbs
> to display all the image files in C:\Test as Thumbnails.
>=20
> Irfanview is a small program and quick to download. There's so many=20
> 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=20
> pictures in an Access table, maybe A2007 has good control of that.
>=20
>> Btw: I use ACDSee for browsing/viewing pictures.
>=20
> Probably has some similarites to Ifranview. Irfanview is freeware=20
> (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.
>=20
>>=20
>> Arno R
Well, I might try Irfanview. Not sure how much work that will be...=20
> I'm not sure why you need to store the=20
> 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=20
Arno R
Re: Open Common Dialog with thumbnail view
am 21.11.2007 21:19:05 von Salad
Arno R wrote:
> "Salad" schreef in bericht news:13k8thn3alnltc2@corp.supernews.com...
>
>>Arno R wrote:
>>
>>
>>>"Salad" schreef in bericht news:13k8m56ev0rsb47@corp.supernews.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 programmatically?
>>>>>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=txtfile - play slideshow with the files from 'txtfile'
>> /slideshow=folder - play slideshow with the files from 'folder'
>> /thumbs - force thumbnails
>>
>>I suppose you could make a command line like
>> i_view32.exe /slideshow=C:\Test /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.Picture = HyperlinkPart(Me.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.
Re: Open Common Dialog with thumbnail view
am 21.11.2007 21:36:06 von Jens Schilling
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
> programmatically?
> 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?Entwicklertools/filedialog.ht m
(german language only).
There you have to look for the red labeled subsection "Spezialversion" where
you may find this:
Download: comdlgdemoXP.zip 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
Re: Open Common Dialog with thumbnail view
am 21.11.2007 23:25:11 von Arno R
"Jens Schilling" schreef in =
bericht news:fi24s8$38u$00$1@news.t-online.com...
> Hi,
>=20
> 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
>> programmatically?
>> Example ??
>=20
> 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=20
> views.
>=20
> Available views are :
> List, Details, Large Icon, Thumbnail, Small Icon and Tile.
>=20
> He clearly punctuated that it's only tested with AXP and Win XP, and =
noone=20
> may expect that it can be used with older versions ( maybe you can try =
> A2000 ) .
>=20
> I case of interest visit this page:
> http://www.kpries.de/index.htm?Entwicklertools/filedialog.ht m
> (german language only).
>=20
> There you have to look for the red labeled subsection "Spezialversion" =
where=20
> you may find this:
> Download: comdlgdemoXP.zip für Windows XP und Access 2002 (XP)
>=20
> The german readme-file gives some more information, so maybe any =
translation=20
> service (such as google language tool ) may be a little help.
>=20
> Regards
> Jens=20
>=20
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
Re: Open Common Dialog with thumbnail view
am 22.11.2007 08:51:31 von Jens Schilling
Hi, Neighbour ;-)
Arno R wrote:
>>> Is it possible to open the common dialog in thumbnail-view
>>> programmatically?
>> 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?Entwicklertools/filedialog.ht m
>> (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/codes.asp?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