Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP and word97 error
Message
 
To
29/04/1998 08:30:51
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00095638
Message ID:
00095728
Views:
19
> 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
>
>
>Anderson Reis Girardi
>Rua Ajax, 125 Parque dos Mayas
>Porto Alegre - RS CEP 90.170-470
>Telefone: (051) 366-4579


Try objwddoc.SetDocumentVar("cidade", "Porto Alegre")
"All my life I said I wanted to be someone ...
I can see now that I should have been more specific." -Jane Wagner
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform