General information
Category:
Coding, syntax & commands
Title:
Word97 and VFP Error
Hello All
I'm trying to automatizate the MS-Word97 with VFP 5.0
I have a word document and into this document i have a field
{DocVariable "Cidade" \*MergeFormat }, this document is called teste.doc.
In VFP i have the follow sintax:
PUBLIC ObjWDdoc
*** set the LOCALEID to English
nlLocaleId=sys(3004)
=sys(3006,1033)
Wait wind WAITMESSAGE6_LOC nowait
objWDdoc=crea("word.basic")
objwddoc.APPSHOW
objwddoc.FileOpen("C:\athenas\ath_lici\teste.doc",.t.)
Here i have problem
objwddoc.Insert(cidade, "Porto Alegre")
The VFP shows me a message saying variable Cidade is not found.
Anyone can help me?
Thanks
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only