Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a document with Word Automation

Status
Not open for further replies.

lynn

Instructor
May 9, 1999
6
US
When I try to create a document through Word automation, I get the message "Could not open macro storage". Here's my code snippet:

set x=server.createobject("Word.Application")
x.documents.add ' This is the line that crashes

This same code works in VB; so, I know it must have something to do with either IIS 5.0 or VBScript.

Any thoughts?
 
Hi - I am having the exact same problem. When I run code on my win 98/PWS machine no problem. Have you found the solution? Thanks
John
 
U couldn't use Server.CreateObject... with word aplication
Because the object is created on the server not on the client side...

if u are trying to generate WORD documents try this way
U have to put in your asp file(at begining) this line
Response.ContentType="application/msword"
and all the html tags is translated to WORD and IE open in his window an embeded WORD object...
This solve my problem ________

George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top