homepage Welcome to WebmasterWorld Guest from 54.161.175.231
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
open MS Word doc from JSP page
manjumurthy




msg:1472808
 8:19 am on Jul 21, 2001 (gmt 0)

Hi all,
on click of a link, i need to open a word document in MS word.
However it opens in IE with a word sort of look.

How do i enforce that the word doc opens in MS Word and not in IE.

I am working with JSP's running on Tomcat
I tried using the following code:

Set Word2 = CreateObject("word.application")
Set mail = Word2.Documents.Open("C:\WorkFlow Product Requirements.doc")
Word2.Visible = True

my CreateObject fails.
i have no idea as to what needs to be done.

need help

 

Brett_Tabke




msg:1472809
 2:17 pm on Jul 21, 2001 (gmt 0)

I don't think you can force a user to do that. There are security implications to attempting that. PDF would be the only solution.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved