Hello,
I want to convert DDE to OLE instruction when i establish link with WORD .
How to convert this ?
owrd:=Toleauto():new("word.application")
owrd:visible:=.T.
**** CONVERT the following in OLE Synthax ****
odde:=tddemlclient():new()
odde:connect("WINWORD","SYSTEM")
odde:execute('[FileOpen .Name = "MODBC.doc"]')
*
ww:=trim(com1rec->numbon1)
odde:execute('[EditReplace .Find="#NBC#",.Replace="&ww",.ReplaceAll ]')
odde:execute('[EditBookmark .Name="TETETAB",.GoTo ]')
ww:=str(com2rec->quant,3)
odde:execute('[Insert "&ww" ]')
odde:execute('[NextCell() ]')
*
odde:execute('[FilePrint ]')
ww:="c:\word\test.doc"
odde:execute('[FileSaveAs .Name ="&ww")]')
odde:execute('[AppClose ]')
odde:end()
*
Thanks for your help .