J
James Pannozzi
I have an elaborate VBScript which
builds a report in Word 2000 running on an NT Server with Citrix.
If the VBScript is started without Word being open,
then the VBScript invokes Word but the script runs very slowly.
If Word is already open, the script runs like a rocket.
Here are the first few lines where it invokes Word -
any ideas on what might be wrong??
Thanks
Jim
Dim objWord
On Error Resume Next
Set objWord = GetObject(, "Word.Application")
If objWord Is Nothing Then
Set objWord = CreateObject("Word.Application") 'When this line
runs, the rest of the script runs real slow.
End If
On Error GoTo 0
objWord.Visible = True
Set objDoc = objWord.Documents.Add("H:\StrucOne\NewPrintMethod1.dot",
,False)
builds a report in Word 2000 running on an NT Server with Citrix.
If the VBScript is started without Word being open,
then the VBScript invokes Word but the script runs very slowly.
If Word is already open, the script runs like a rocket.
Here are the first few lines where it invokes Word -
any ideas on what might be wrong??
Thanks
Jim
Dim objWord
On Error Resume Next
Set objWord = GetObject(, "Word.Application")
If objWord Is Nothing Then
Set objWord = CreateObject("Word.Application") 'When this line
runs, the rest of the script runs real slow.
End If
On Error GoTo 0
objWord.Visible = True
Set objDoc = objWord.Documents.Add("H:\StrucOne\NewPrintMethod1.dot",
,False)