Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Opening a new document from web page


Message #1 by "Lee" <lee@h...> on Wed, 29 Aug 2001 21:02:31
I'm not sure if ASP is the right choice for this or not.  What would be 

the best way to open a new word document and specify the template to be 

used for the new document?
Message #2 by Greg Griffiths <griffiths@x...> on Thu, 30 Aug 2001 00:09:22 +0100
ASP if you are doing it on the Server, probably an Active X or Java 

component for Client Side



At 21:02 29/08/01 +0000, you wrote:

>I'm not sure if ASP is the right choice for this or not.  What would be

>the best way to open a new word document and specify the template to be

>used for the new document?



Message #3 by "Lee" <lee@h...> on Thu, 30 Aug 2001 03:07:08
> ASP if you are doing it on the Server, probably an Active X or Java 

> component for Client Side

> 

> At 21:02 29/08/01 +0000, you wrote:

> >I'm not sure if ASP is the right choice for this or not.  What would be

> >the best way to open a new word document and specify the template to be

> >used for the new document?

> 

Forgot to ask the "how would it be done" / "what components do I use" 

question as well when posting the question.  Thanks in advance.
Message #4 by "Tim Morford" <tmorford@n...> on Thu, 30 Aug 2001 07:47:49 -0400
I think it is something like



Set doc = CreateObject("Word.Document")

doc.CopyStylesFromTemplate("Template_Name")



Tim Morford



-----Original Message-----

From: Lee [mailto:lee@h...]

Sent: Wednesday, August 29, 2001 9:03 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Opening a new document from web page





I'm not sure if ASP is the right choice for this or not.  What would be

the best way to open a new word document and specify the template to be

used for the new document?



Message #5 by "Lee" <lee@h...> on Fri, 31 Aug 2001 20:15:41
I tried this code, but got an invalid class string error on the 

createobject line.



Set MyWord = server.CreateObject("Word.application")

MyWord.CopyStylesFromTemplate("Template_Name")





> I think it is something like

> 

> Set doc = CreateObject("Word.Document")

> doc.CopyStylesFromTemplate("Template_Name")

> 

> Tim Morford

> 

> -----Original Message-----

> From: Lee [mailto:lee@h...]

> Sent: Wednesday, August 29, 2001 9:03 PM

> To: ASP Web HowTo

> Subject: [asp_web_howto] Opening a new document from web page

> 

> 

> I'm not sure if ASP is the right choice for this or not.  What would be

> the best way to open a new word document and specify the template to be

> used for the new document?

> 

Message #6 by Jay Franklin <jayrfranklin@y...> on Fri, 31 Aug 2001 15:09:25 -0700 (PDT)
If you want to create a new word document within your

web page you must have Word installed on the server.



Jay

--- Lee <lee@h...> wrote:

> I tried this code, but got an invalid class string

> error on the 

> createobject line.

> 

> Set MyWord = server.CreateObject("Word.application")

> MyWord.CopyStylesFromTemplate("Template_Name")

> 

> 

> > I think it is something like

> > 

> > Set doc = CreateObject("Word.Document")

> > doc.CopyStylesFromTemplate("Template_Name")

> > 

> > Tim Morford

> > 

> > -----Original Message-----

> > From: Lee [mailto:lee@h...]

> > Sent: Wednesday, August 29, 2001 9:03 PM

> > To: ASP Web HowTo

> > Subject: [asp_web_howto] Opening a new document

> from web page

> > 

> > 

> > I'm not sure if ASP is the right choice for this

> or not.  What would be

> > the best way to open a new word document and

> specify the template to be

> > used for the new document?


  Return to Index