469,648 Members | 1,394 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,648 developers. It's quick & easy.

Opening Word document from an ASP page

Hello,

I have a server with a Word document and an Access database on it. I
also have an ASP page running on the server. The Word document
contains a mail merge with the Access database. What I want to do is
open the merged Word document from the ASP page when a button is
clicked. I have tried several things including some scripting that I
found on the internet. This scripting works, however it opens the
merged document on the server instead of on the user's local machine.
I want the Word document to open on the local machine instead.

Any help would be greatly appreciated.

Thanks,
Matt

Apr 6 '06 #1
7 3018
ASP is server side,

you need to use client side script

try this page, it opens in client and loads file from my server

http://wanews.org/test/word.htm
"mkorch17" <ma***************@gmail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
Hello,

I have a server with a Word document and an Access database on it. I
also have an ASP page running on the server. The Word document
contains a mail merge with the Access database. What I want to do is
open the merged Word document from the ASP page when a button is
clicked. I have tried several things including some scripting that I
found on the internet. This scripting works, however it opens the
merged document on the server instead of on the user's local machine.
I want the Word document to open on the local machine instead.

Any help would be greatly appreciated.

Thanks,
Matt

Apr 6 '06 #2
Doesn't open anything.
Slim wrote:
ASP is server side,

you need to use client side script

try this page, it opens in client and loads file from my server

http://wanews.org/test/word.htm
"mkorch17" <ma***************@gmail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
Hello,

I have a server with a Word document and an Access database on it. I
also have an ASP page running on the server. The Word document
contains a mail merge with the Access database. What I want to do is
open the merged Word document from the ASP page when a button is
clicked. I have tried several things including some scripting that I
found on the internet. This scripting works, however it opens the
merged document on the server instead of on the user's local machine.
I want the Word document to open on the local machine instead.

Any help would be greatly appreciated.

Thanks,
Matt


Apr 6 '06 #3
works for me

I was using Word.Application.11 (office 2003)
I have changed it to Word.Application

try again
http://wanews.org/test/word.htm

"mkorch17" <ma***************@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
Doesn't open anything.
Slim wrote:
ASP is server side,

you need to use client side script

try this page, it opens in client and loads file from my server

http://wanews.org/test/word.htm
"mkorch17" <ma***************@gmail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
> Hello,
>
> I have a server with a Word document and an Access database on it. I
> also have an ASP page running on the server. The Word document
> contains a mail merge with the Access database. What I want to do is
> open the merged Word document from the ASP page when a button is
> clicked. I have tried several things including some scripting that I
> found on the internet. This scripting works, however it opens the
> merged document on the server instead of on the user's local machine.
> I want the Word document to open on the local machine instead.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Matt
>

Apr 6 '06 #4
PS you will need to check your IE security setting and make sure active x
can run

"Slim" <me@here.com> wrote in message
news:es**************@TK2MSFTNGP05.phx.gbl...
works for me

I was using Word.Application.11 (office 2003)
I have changed it to Word.Application

try again
http://wanews.org/test/word.htm

"mkorch17" <ma***************@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
Doesn't open anything.
Slim wrote:
ASP is server side,

you need to use client side script

try this page, it opens in client and loads file from my server

http://wanews.org/test/word.htm
"mkorch17" <ma***************@gmail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
> Hello,
>
> I have a server with a Word document and an Access database on it. I
> also have an ASP page running on the server. The Word document
> contains a mail merge with the Access database. What I want to do is
> open the merged Word document from the ASP page when a button is
> clicked. I have tried several things including some scripting that I
> found on the internet. This scripting works, however it opens the
> merged document on the server instead of on the user's local machine.
> I want the Word document to open on the local machine instead.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Matt
>


Apr 6 '06 #5
I can't use an ActiveX solution, my company does not allow it.

Apr 6 '06 #6
mkorch17 wrote:
Hello,

I have a server with a Word document and an Access database on it. I
also have an ASP page running on the server. The Word document
contains a mail merge with the Access database. What I want to do is
open the merged Word document from the ASP page when a button is
clicked. I have tried several things including some scripting that I
found on the internet. This scripting works, however it opens the
merged document on the server instead of on the user's local machine.
I want the Word document to open on the local machine instead.

Any help would be greatly appreciated.

Maybe something in this article will help you:
http://support.microsoft.com/default...;en-us;q257757

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Apr 6 '06 #7
Opening word on client side requires it
"mkorch17" <ma***************@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
I can't use an ActiveX solution, my company does not allow it.

Apr 7 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Elizabeth Harmon | last post: by
3 posts views Thread by Yohancef Chin | last post: by
reply views Thread by =?Utf-8?B?V2FubmFiZQ==?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.