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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word automation - error

Status
Not open for further replies.

efrost2

Programmer
Jul 18, 2001
50
US
This works fine in win98/PWS -

Dim objApp
Set objApp = CreateObject("Word.Application")
sTemp = objApp.ActivePrinter
response.write sTemp & &quot;<BR>&quot;

set objDoc = objApp.Documents
sTemp3 = objDoc.Count
response.write sTemp3 'I get to this point no problem

set objTemplate = objDoc.Add (&quot;C:\Program Files\Microsoft Office\Templates\LetterHome.dot&quot;) 'crashes here

- however, when run under win2000 server/IIS5.0 I get the MS Word error 'couldn't open macro storage'. When I check task manager I see that winword.exe is running as a process so I know that the object was created. - any suggestions?
Thanks
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top