V
Vignesh
Hi,
I have an application developed using VB 5 and has got the WORD automation incorporated. (Meaning from VB application, user can launch word templates designed for their needs). So long we were using Windows 98 as OS. Now i am moving to Windows XP & Office XP.
Now i have done the changes necessary my word automation. But whenever i run the program i get a message 'Window is maximized' ( I have already set the WORD OBJECT LIBRARY to XP Version, yet getting the same error). When i debug i find the error code no is 5868. And in particular, this error is shown when running the below mentioned command @ line no.4.
May i know what is the cause and how to resolve it ????
Line 1 Set loWord = New Word.Application
Line 2 With loWord
Line 3 .Application.Top = 0
Line 4 .Application.Resize Width:=Screen.Width / (Screen.TwipsPerPixelX * 2.65), Height:=Screen.Height /
Screen.TwipsPerPixelY
Line 5
..
..
Line 20 End With
Thanks
I have an application developed using VB 5 and has got the WORD automation incorporated. (Meaning from VB application, user can launch word templates designed for their needs). So long we were using Windows 98 as OS. Now i am moving to Windows XP & Office XP.
Now i have done the changes necessary my word automation. But whenever i run the program i get a message 'Window is maximized' ( I have already set the WORD OBJECT LIBRARY to XP Version, yet getting the same error). When i debug i find the error code no is 5868. And in particular, this error is shown when running the below mentioned command @ line no.4.
May i know what is the cause and how to resolve it ????
Line 1 Set loWord = New Word.Application
Line 2 With loWord
Line 3 .Application.Top = 0
Line 4 .Application.Resize Width:=Screen.Width / (Screen.TwipsPerPixelX * 2.65), Height:=Screen.Height /
Screen.TwipsPerPixelY
Line 5
..
..
Line 20 End With
Thanks