Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 15th, 2005, 10:14 AM
Registered User
 
Join Date: Jan 2005
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
Photo#Aug\DrkCirc_Aug_025.jpg#

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...


 
Old January 16th, 2005, 04:44 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

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


http://support.microsoft.com/default...;EN-US;q257592


Jaime E. Maccou
 
Old January 18th, 2005, 11:30 AM
Friend of Wrox
 
Join Date: Jun 2003
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
Default

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
 
Old January 18th, 2005, 01:05 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

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==========

HTH




mmcdonal





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





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