|
 |
asp_web_howto thread: output to word document
Message #1 by "Lee Nohara" <lee@h...> on Tue, 28 Aug 2001 22:18:43
|
|
Is it possible to use input taken from an asp page and create a word
document on the client side for printing? If so, how would you go about
doing it? Thanks in advance.
Message #2 by "Ken Schaefer" <ken@a...> on Wed, 29 Aug 2001 13:58:10 +1000
|
|
You'd need to create the Word document on the server, and have the user
download the document. You can't just go around creating documents on client
machines (unless the machine is configured to let you do that) - and you
certainly can't do it with server-side ASP script.
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Lee Nohara" <lee@h...>
Subject: [asp_web_howto] output to word document
: Is it possible to use input taken from an asp page and create a word
: document on the client side for printing? If so, how would you go about
: doing it? Thanks in advance.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Message #3 by Jay Franklin <jayrfranklin@y...> on Wed, 29 Aug 2001 04:42:47 -0700 (PDT)
|
|
Word must be installed on the Server to create the
document and installed on the client to access the
document.
Jay
--- Ken Schaefer <ken@a...> wrote:
> You'd need to create the Word document on the
> server, and have the user
> download the document. You can't just go around
> creating documents on client
> machines (unless the machine is configured to let
> you do that) - and you
> certainly can't do it with server-side ASP script.
>
> Cheers
> Ken
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> From: "Lee Nohara" <lee@h...>
> Subject: [asp_web_howto] output to word document
>
>
> : Is it possible to use input taken from an asp page
> and create a word
> : document on the client side for printing? If so,
> how would you go about
> : doing it? Thanks in advance.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
Message #4 by "Tim Morford" <tmorford@n...> on Wed, 29 Aug 2001 08:31:08 -0400
|
|
set doc = CreateObject("Word.Document") 'creates the Document
doc.application.visable = True/False ' Do you want to Show the Document
YES/NO
doc.printout ' Print it out
set doc = nothing ' Clean up your Room
Let me know if this is not what you are looking for.
Tim Morford
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> From: "Lee Nohara" <lee@h...>
> Subject: [asp_web_howto] output to word document
>
>
> : Is it possible to use input taken from an asp page
> and create a word
> : document on the client side for printing? If so,
> how would you go about
> : doing it? Thanks in advance.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
Message #5 by "Hema R." <hema.r@s...> on Thu, 30 Aug 2001 12:25:32 +0530
|
|
Hi Tim,
I tried this out ,but why is the word document not opening or
why is it not visible?
regards
Hema
> -----Original Message-----
> From: Tim Morford [SMTP:tmorford@n...]
> Sent: 29 August Wednesday 2001 05:31 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Re: output to word document
>
> set doc = CreateObject("Word.Document") 'creates the Document
> doc.application.visable = True/False ' Do you want to Show the Document
> YES/NO
>
> doc.printout ' Print it out
> set doc = nothing ' Clean up your Room
>
> Let me know if this is not what you are looking for.
>
> Tim Morford
>
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > From: "Lee Nohara" <lee@h...>
> > Subject: [asp_web_howto] output to word document
> >
> >
> > : Is it possible to use input taken from an asp page
> > and create a word
> > : document on the client side for printing? If so,
> > how would you go about
> > : doing it? Thanks in advance.
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
>
>
Message #6 by "Tim Morford" <tmorford@n...> on Thu, 30 Aug 2001 07:45:44 -0400
|
|
Try This I think it will work
<%
Dim doc
Set doc = CreateObject("Word.Document")
doc.Application.Visible = True
doc.content.insertAfter "Print ME!"
doc.content.insertParagraphBefore
doc.PrintOut
Set doc = Nothing
%>
Tim Morford
-----Original Message-----
From: Hema R. [mailto:hema.r@s...]
Sent: Thursday, August 30, 2001 2:56 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: output to word document
Hi Tim,
I tried this out ,but why is the word document not opening or
why is it not visible?
regards
Hema
> -----Original Message-----
> From: Tim Morford [SMTP:tmorford@n...]
> Sent: 29 August Wednesday 2001 05:31 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Re: output to word document
>
> set doc = CreateObject("Word.Document") 'creates the Document
> doc.application.visable = True/False ' Do you want to Show the Document
> YES/NO
>
> doc.printout ' Print it out
> set doc = nothing ' Clean up your Room
>
> Let me know if this is not what you are looking for.
>
> Tim Morford
>
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > From: "Lee Nohara" <lee@h...>
> > Subject: [asp_web_howto] output to word document
> >
> >
> > : Is it possible to use input taken from an asp page
> > and create a word
> > : document on the client side for printing? If so,
> > how would you go about
> > : doing it? Thanks in advance.
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
>
>
Message #7 by "Hema R." <hema.r@s...> on Thu, 30 Aug 2001 17:47:57 +0530
|
|
No, it still doesnt open the Word Doc explicitly
Hema
> -----Original Message-----
> From: Tim Morford [SMTP:tmorford@n...]
> Sent: 30 August Thursday 2001 04:46 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Re: output to word document
>
> Try This I think it will work
>
>
> <%
> Dim doc
> Set doc = CreateObject("Word.Document")
> doc.Application.Visible = True
> doc.content.insertAfter "Print ME!"
> doc.content.insertParagraphBefore
> doc.PrintOut
> Set doc = Nothing
> %>
>
> Tim Morford
>
>
> -----Original Message-----
> From: Hema R. [mailto:hema.r@s...]
> Sent: Thursday, August 30, 2001 2:56 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Re: output to word document
>
>
> Hi Tim,
>
> I tried this out ,but why is the word document not opening or
> why is it not visible?
>
> regards
> Hema
> > -----Original Message-----
> > From: Tim Morford [SMTP:tmorford@n...]
> > Sent: 29 August Wednesday 2001 05:31 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] Re: output to word document
> >
> > set doc = CreateObject("Word.Document") 'creates the Document
> > doc.application.visable = True/False ' Do you want to Show the Document
> > YES/NO
> >
> > doc.printout ' Print it out
> > set doc = nothing ' Clean up your Room
> >
> > Let me know if this is not what you are looking for.
> >
> > Tim Morford
> >
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > From: "Lee Nohara" <lee@h...>
> > > Subject: [asp_web_howto] output to word document
> > >
> > >
> > > : Is it possible to use input taken from an asp page
> > > and create a word
> > > : document on the client side for printing? If so,
> > > how would you go about
> > > : doing it? Thanks in advance.
Message #8 by kamruz@b... on Thu, 30 Aug 2001 13:29:19
|
|
I was trying to do the same with excel and found this useful article on
the MSDN website. The problem I found with creating the web document on
the server and then downloading to the user is that you need to have word
installed and word is memory hungry. creating the documen this way is as
simple as screating a HTml document.
http://support.microsoft.com/support/kb/articles/Q301/0/44.ASP
Hope this was what you were looking for
Good luck,
Kamruz
Message #9 by "Tim Morford" <tmorford@n...> on Thu, 30 Aug 2001 08:46:33 -0400
|
|
What Error are you getting, also what version of Word are you using?
I tryed it on my system using word 2000 but I am running it localy..
Tim Morford
-----Original Message-----
From: Hema R. [mailto:hema.r@s...]
Sent: Thursday, August 30, 2001 8:18 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: output to word document
No, it still doesnt open the Word Doc explicitly
Hema
> -----Original Message-----
> From: Tim Morford [SMTP:tmorford@n...]
> Sent: 30 August Thursday 2001 04:46 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Re: output to word document
>
> Try This I think it will work
>
>
> <%
> Dim doc
> Set doc = CreateObject("Word.Document")
> doc.Application.Visible = True
> doc.content.insertAfter "Print ME!"
> doc.content.insertParagraphBefore
> doc.PrintOut
> Set doc = Nothing
> %>
>
> Tim Morford
>
>
> -----Original Message-----
> From: Hema R. [mailto:hema.r@s...]
> Sent: Thursday, August 30, 2001 2:56 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Re: output to word document
>
>
> Hi Tim,
>
> I tried this out ,but why is the word document not opening or
> why is it not visible?
>
> regards
> Hema
> > -----Original Message-----
> > From: Tim Morford [SMTP:tmorford@n...]
> > Sent: 29 August Wednesday 2001 05:31 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] Re: output to word document
> >
> > set doc = CreateObject("Word.Document") 'creates the Document
> > doc.application.visable = True/False ' Do you want to Show the Document
> > YES/NO
> >
> > doc.printout ' Print it out
> > set doc = nothing ' Clean up your Room
> >
> > Let me know if this is not what you are looking for.
> >
> > Tim Morford
> >
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > From: "Lee Nohara" <lee@h...>
> > > Subject: [asp_web_howto] output to word document
> > >
> > >
> > > : Is it possible to use input taken from an asp page
> > > and create a word
> > > : document on the client side for printing? If so,
> > > how would you go about
> > > : doing it? Thanks in advance.
Message #10 by "Lee" <lee@h...> on Thu, 30 Aug 2001 21:33:25
|
|
Thanks for that URL it was helpful. One more question. Is there a way to
specify the document template to be used when opening a new document or
does it always use the default normal? I'm not too familiar with all the
object methods and properties. Thanks again.
|
|
 |