Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 15th, 2005, 10:14 AM
Registered User
Join Date: Jan 2005
Location: Plymouth, , United Kingdom.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Default application in a hyperlink

Hello All,

Can anyone tell me if it is possible to set the application used to open a jpg file in a hyperlink?

For example current hyperlinks are of the format

This opens the image in Microsoft Image Editor - annoyingly sized at 100% zoom and not at best fit. Hence the requirement to open the images in another application such as Windows Picture and Fax Viewer.

I've tried the file format defaults without success but it isn't a particularly user friendly approach anyway. Really I need a way of stipulating the opening application from the link or mdb.

Any suggestions?

Thanks in anticipation...

Reply With Quote
  #2 (permalink)  
Old January 16th, 2005, 04:44 AM
Friend of Wrox
Join Date: Nov 2003
Location: Lehigh Acres, FL, USA.
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc

Will the user have the application in mind installed on there pc. If the application you want to open that specific file type you will have to associate the file type with the application.

Questions to consider

1. Will all your user use the same application
2. Will all user have the same version of the application


Jaime E. Maccou
Reply With Quote
  #3 (permalink)  
Old January 18th, 2005, 11:30 AM
Friend of Wrox
Points: 4,007, Level: 26
Points: 4,007, Level: 26 Points: 4,007, Level: 26 Points: 4,007, Level: 26
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Lansing, Michigan, USA.
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG

If you use the statement

Application.FollowHyperlink "DrkCirc_Aug_025.jpg"

Windows will use the user's default associated application to open the JPG. This will eliminate the need to specify (i.e. guess) what the user had on his/her computer. For me, JPGs open in Microsoft Photo Editor which tend to open "fit to page" or slightly smaller.

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
Reply With Quote
  #4 (permalink)  
Old January 18th, 2005, 01:05 PM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts

You need to call the application first, then give the application the link. If you just feed the image, the OS chooses the app. If you call the app, then give the app the image, it works. Here is an example:

'==========Code Starts========
stLink = "http:\\www.mywebsite.com\images\MyImage.jpg"
Set objExplorer = CreateObject("InternetExplorer.Application")
        objExplorer.Navigate stLink
        objExplorer.Visible = 1
'==========Code Ends==========


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink carlos1972 Access VBA 2 November 7th, 2007 10:17 AM
Default Messages on Running Application penta Access 6 March 8th, 2005 06:45 AM
hyperlink hyperlink sbhandar Classic ASP Basics 6 August 26th, 2004 02:04 AM
hyperlink pab006 Classic ASP Basics 5 December 17th, 2003 10:33 AM
Hyperlink CW Classic ASP Databases 5 September 17th, 2003 06:45 AM

All times are GMT -4. The time now is 10:09 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.