Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic 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 September 27th, 2004, 06:20 AM
Authorized User
 
Join Date: Jun 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to maha
Default Words Document

Hi all,

I created a html file and have a link to open a words document. Below is my code:

<a href="C:\Program Files\Microsoft Office\Office10\WINWORD.EXE" "G:\TTP\Template\maha-test.doc">View Document</a>

This command manage to open MS Words but not the document. I know something is not correct with the command. Please assist.

Thanks,
Maha
 
Old September 27th, 2004, 06:31 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

That's odd. For me the browser tries to download the exe, even locally.

Anyhow, you can't have Windows command line as a link. Just link to the doc and it will open in Word by association, within or outside the browser, if the system is set up that way.

(o<
//\ =^..^=
 
Old September 29th, 2004, 01:02 AM
Friend of Wrox
 
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Simple <a href="/config.doc">link to word document </a> will also work if the document exist in the same directory otherwise you need to provide a qualified path

Charul Shukla
 
Old September 29th, 2004, 01:56 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

Dear Charul Shukla your code wil try to download the file while Huma wants to open in in the browser or simply open in in word




(*_*)

Numan
--------------------------------------------------
It is not important what you get But important is how you got it
 
Old September 29th, 2004, 02:00 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Quote:
quote:Originally posted by qazi_nomi
 Dear Charul Shukla your code wil try to download the file while Huma wants to open in in the browser or simply open in in word

Untrue.

If Word is installed and in its file associations "Confirm open on download" is not checked then the link will open Word. Whether Word is integrated with IE or opened as a separate applicationis governed by the setting "Browse in same window".

--

Joe
 
Old September 29th, 2004, 02:07 AM
Friend of Wrox
 
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Right joe

Charul Shukla
 
Old September 29th, 2004, 02:16 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

No no if we want to open it without any prompt then how we do as some of PDF files open in the browsers without any prompt
How to avoid the prompt message ?


(*_*)

Numan
--------------------------------------------------
It is not important what you get But important is how you got it
 
Old September 29th, 2004, 02:37 AM
Friend of Wrox
 
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
Default

As joe said earlier also, i think its more depand on the settings, like on my machine it did not asked me any question and open the word doucment right there in browser by integrating the MS-WORD in it.

Charul Shukla
 
Old September 29th, 2004, 03:08 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

Dear it is due to that when first time message apears it ask that in future ask this or direct open it u clikc on open so that why there is no any prompt message


(*_*)

Numan
--------------------------------------------------
It is not important what you get But important is how you got it





Similar Threads
Thread Thread Starter Forum Replies Last Post
Count the number of words in a PDF document basil123 Pro PHP 5 May 27th, 2009 01:00 AM
why I can't use Chinese words? cash JSP Basics 4 February 19th, 2004 10:47 PM
why I can't use Chinese words? cash Pro JSP 1 February 17th, 2004 02:40 PM
Count the number of words in a PDF document. basil123 PHP How-To 0 October 16th, 2003 06:51 AM
generating words kozam C++ Programming 1 September 30th, 2003 12:54 PM





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