homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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

10+ Year Member

Msg#: 650 posted 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



WebmasterWorld Administrator brett_tabke us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 650 posted 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