Actually the problem is with the view setting in Word. It needs to be set to Printlayout not normal. I found an article for this on MSDN.
Thanks for the help
Jim
>Hi Jim,
>
>I can't answer that, but I can tell you that I had a similar problem (slightly different error message) witha Treeview control and the same approach worked for me there.
>
>My guess was that VFP got confused regarding the object reference and that working it out in advance and directly, then using that to 'address' the object, solved the confusion.
>
>good luck
>
>>Sergey, thanks for the suggestion. I just wanted to know why it would make a difference and not cause the error.
>>
>>Jim
>>
>>>Hi Jim,
>>>
>>>I'm not sure if it would help, but you can try
loView = oWord.ActiveWindow.ActivePane.View
>>>loView.SeekView = 9
>>>
>>>
>>>>
>>>> Major problems with a software package we just issued to a client. We automate Word to create a report. The logic for the automation puts certain information in the header, body and footer of the document. The error message we are getting is the following Error 1429: OLE Dispatch..."SeekView is not a by reference property... The error occurs on the following lines
>>>>
>>>>
>>>> oWord.ActiveWindow.ActivePane.View.SeekView= 9
>>>>
>>>>
>>>>
>>>> oWord.ActiveWindow.ActivePane.View.SeekView = 0
>>>>
>>>>
>>>>
>>>> oWord.ActiveWindow.ActivePane.View.SeekView = 10
>>>>
>>>>
>>>>Are there any issues with these commands?
>>>>
>>>>What am I doing wrong?
Thanks
Jim