views:

32

answers:

0

Hi, this is pretty strange. I'm trying to run a pretty simple vbs code from a terminal server and I have amongst others, this line:

Set objWord = CreateObject("Word.Application")

Strangely enough, this worked yesterday. But now, all that happens is that wscript.exe just seems to hang. I even tried to put a messagebox before the creation of the Word object and after. And the message box after is never shown. On my local computer however, this works fine. And yes, the terminalserver does have Word installed.

What could be causing this?

Edit: Is it better to do this routine from the templates instead? I mean, that would eliminate the need to create the Word object since it's already created once the templates is opened.