Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ever Come across this one?
Message
De
18/06/2004 12:56:04
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
 
 
À
18/06/2004 12:38:56
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00914831
Message ID:
00915141
Vues:
9
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 && wdSeekCurrentPageHeader
>>>>
>>>>
>>>>
>>>>   oWord.ActiveWindow.ActivePane.View.SeekView = 0  && wdSeekMainDocument
>>>>
>>>>
>>>>
>>>> oWord.ActiveWindow.ActivePane.View.SeekView = 10  && wdSeekCurrentPageFooter
>>>>
>>>>
>>>>Are there any issues with these commands?
>>>>
>>>>What am I doing wrong?
Thanks

Jim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform