Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Opening Word document from an ASP page

Reply
Thread Tools

Opening Word document from an ASP page

 
 
mkorch17
Guest
Posts: n/a
 
      04-06-2006
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

 
Reply With Quote
 
 
 
 
Slim
Guest
Posts: n/a
 
      04-06-2006
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" <> wrote in message
news: 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
>



 
Reply With Quote
 
 
 
 
mkorch17
Guest
Posts: n/a
 
      04-06-2006
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" <> wrote in message
> news: 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
> >


 
Reply With Quote
 
Slim
Guest
Posts: n/a
 
      04-06-2006
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" <> wrote in message
news: 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" <> wrote in message
>> news: 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
>> >

>



 
Reply With Quote
 
Slim
Guest
Posts: n/a
 
      04-06-2006
PS you will need to check your IE security setting and make sure active x
can run



"Slim" <> wrote in message
news:...
> 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" <> wrote in message
> news: 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" <> wrote in message
>>> news: 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
>>> >

>>

>
>



 
Reply With Quote
 
mkorch17
Guest
Posts: n/a
 
      04-06-2006
I can't use an ActiveX solution, my company does not allow it.

 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      04-06-2006
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.


 
Reply With Quote
 
Slim
Guest
Posts: n/a
 
      04-07-2006
Opening word on client side requires it


"mkorch17" <> wrote in message
news: oups.com...
>I can't use an ActiveX solution, my company does not allow it.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening page as a Word Document =?Utf-8?B?V2FubmFiZQ==?= ASP .Net 0 02-28-2007 03:00 PM
Word file not opening from Adm -My recent docs but opening from file menu of Word Thaqalain Computer Support 0 06-30-2005 02:20 AM
Opening a Word Document Charles A. Lackman ASP .Net 3 04-28-2005 04:54 PM
Opening a microsoft word document from within an ASP.Net WebForm =?Utf-8?B?dGVycnk=?= ASP .Net 2 07-09-2004 12:12 PM
Opening word, excel, pp document under asp.net with VB.net code behind =?Utf-8?B?U2FpZA==?= ASP .Net 0 11-18-2003 04:01 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57