473,379 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

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 3193
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sivaraman.S | last post by:
Issue: When I am opening a word document or a template from an ASP.NET Web page (language used VB.NET Visual Studio Version 2003) using Word.ApplicationClass object (Reference Word 11.0 object...
3
by: Andy Davis | last post by:
I have set up a mail merge document in Word 2003 which gets its data from my Access 2000 database. I want to set up a button on a form that: 1. runs the query to provide the dat for the merge...
1
by: Elizabeth Harmon | last post by:
Hi All I am attempting to open a Word App from a web page and so far everything works (After reconfig of dcomcnfg for Microsoft Word Document). I have one minor problem, i cannot get the...
3
by: Yohancef Chin | last post by:
Hi, Being fairly new to .NET I am looking for a way to call MS Word from an event on a webform, and after the user is finished save that created document to an SQL Server database. Has anyone...
3
by: richi | last post by:
Hello, i'm hoping that somebody can point me in the right direction with my problem. I have been tasked with creating a simple browser based application that will allow the user to upload Word...
0
by: Sivaraman.S | last post by:
Issue : When I am trying to open a Word Document or a Template from a Web Application (ASP.NET Web page - Language Used VB.NET Visual Studio Version 2003) using Word.ApplicationClass (Refering...
2
by: Colin Halliday | last post by:
I have a Word 2003 mail merge main document (form letter) that is linked to another Word document data source for the mail merge. If I open this doc using the Word GUI, it first asks me to...
4
by: sunil | last post by:
Hi, I have to open a word document from my aspx page.The Page_Load method contains the following code System.IO.TextWriter tx = Response.Output; System.IO.StreamReader sr = new...
0
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
I am creating a webpage and opening it as a Word document. Problem is that as I create one of the questions, some of the text is not appearing in the document as it should. As I step through it, I...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.