Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

open MS Word doc from JSP page



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

Inactive Member
Account Expired


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

2:17 pm on July 21, 2001 (gmt 0)

Administrator from US 

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

joined:Sept 21, 1999
votes: 16

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.