dbTalk Databases Forums  

embedded bmp in image control opened in windows picture viewer?

comp.databases.ms-access comp.databases.ms-access


Discuss embedded bmp in image control opened in windows picture viewer? in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
christianlott1@yahoo.com
 
Posts: n/a

Default embedded bmp in image control opened in windows picture viewer? - 10-20-2011 , 03:51 PM






I want to be able to double click on the embedded image file in a
image control and have that image open in windows picture viewer.

Anyone know how to do this?


Thanks.

Reply With Quote
  #2  
Old   
Access Developer
 
Posts: n/a

Default Re: embedded bmp in image control opened in windows picture viewer? - 10-20-2011 , 08:53 PM






Associate Windows Picture Viewer to the image file type of the imbedded
image. In the Click event of the Image Control, use the
Application.FollowHyperlink with the Picture property of the Image Control.

Larry Linson, Microsof Office Access MVP


<christianlott1 (AT) yahoo (DOT) com> wrote

Quote:
I want to be able to double click on the embedded image file in a
image control and have that image open in windows picture viewer.

Anyone know how to do this?


Thanks.

Reply With Quote
  #3  
Old   
Jon Lewis
 
Posts: n/a

Default Re: embedded bmp in image control opened in windows picture viewer? - 10-21-2011 , 07:46 AM



That will only work if the image is linked won't it Larry? The OP said the
image was embedded.

Jon


"Access Developer" <accdevel (AT) gmail (DOT) com> wrote

Quote:
Associate Windows Picture Viewer to the image file type of the imbedded
image. In the Click event of the Image Control, use the
Application.FollowHyperlink with the Picture property of the Image
Control.

Larry Linson, Microsof Office Access MVP


christianlott1 (AT) yahoo (DOT) com> wrote in message
news:178d7a09-59ba-4da9-becc-d0765a14cb84 (AT) m4g2000yqm (DOT) googlegroups.com...
I want to be able to double click on the embedded image file in a
image control and have that image open in windows picture viewer.

Anyone know how to do this?


Thanks.



Reply With Quote
  #4  
Old   
Jon Lewis
 
Posts: n/a

Default Re: embedded bmp in image control opened in windows picture viewer? - 10-21-2011 , 07:59 AM



If the image is linked then Larry's suggestion should work but if it is
actually embedded this is more difficult.
You need to create a temp file of the image and then you could use the Shell
command to open it.
To create the temp file you need to use the PictureData property of the
image control. There should be examples of this Googleable or try Steven
Leban's site www.lebans.com for an example. Post back if stuck.

Depending on your app though you may just be better off making the image
linked.

HTH

Jon





<christianlott1 (AT) yahoo (DOT) com> wrote

Quote:
I want to be able to double click on the embedded image file in a
image control and have that image open in windows picture viewer.

Anyone know how to do this?


Thanks.

Reply With Quote
  #5  
Old   
christianlott1@yahoo.com
 
Posts: n/a

Default Re: embedded bmp in image control opened in windows picture viewer? - 10-21-2011 , 10:08 AM



On Oct 21, 7:59*am, "Jon Lewis" <jon.le... (AT) cutthespambtinternet (DOT) com>
wrote:
Quote:
If the image is linked then Larry's suggestion should work but if it is
actually embedded this is more difficult.
You need to create a temp file of the image and then you could use the Shell
command to open it.
To create the temp file you need to use the PictureData property of the
image control. *There should be examples of this Googleable or try Steven
Leban's sitewww.lebans.comfor an example. *Post back if stuck.

Depending on your app though you may just be better off making the image
linked.
Thanks. Yeah, I guess it'll have to be linked. Why don't they think of
these simple scenarios when they develop this stuff? Shees.

Reply With Quote
  #6  
Old   
Jon Lewis
 
Posts: n/a

Default Re: embedded bmp in image control opened in windows picture viewer? - 10-24-2011 , 06:45 AM



Because it's actually not simple. In any case storing a lot of image data
either in a table or in image controls is not considerd good practice as it
will cause database bloat but if you must do this then there are ways and
means. If you're not familiar with using the Windows API libraries then
best to stick tio linked.

Jon



<christianlott1 (AT) yahoo (DOT) com> wrote

On Oct 21, 7:59 am, "Jon Lewis" <jon.le... (AT) cutthespambtinternet (DOT) com>
wrote:
Quote:
If the image is linked then Larry's suggestion should work but if it is
actually embedded this is more difficult.
You need to create a temp file of the image and then you could use the
Shell
command to open it.
To create the temp file you need to use the PictureData property of the
image control. There should be examples of this Googleable or try Steven
Leban's sitewww.lebans.comfor an example. Post back if stuck.

Depending on your app though you may just be better off making the image
linked.
Thanks. Yeah, I guess it'll have to be linked. Why don't they think of
these simple scenarios when they develop this stuff? Shees.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.