This works fine in win98/PWS -
Dim objApp
Set objApp = CreateObject("Word.Application"
sTemp = objApp.ActivePrinter
response.write sTemp & "<BR>"
set objDoc = objApp.Documents
sTemp3 = objDoc.Count
response.write sTemp3 'I get to this point no problem
set objTemplate = objDoc.Add ("C:\Program Files\Microsoft Office\Templates\LetterHome.dot" '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
Dim objApp
Set objApp = CreateObject("Word.Application"
sTemp = objApp.ActivePrinter
response.write sTemp & "<BR>"
set objDoc = objApp.Documents
sTemp3 = objDoc.Count
response.write sTemp3 'I get to this point no problem
set objTemplate = objDoc.Add ("C:\Program Files\Microsoft Office\Templates\LetterHome.dot" '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