RE: NEWERA DDE to Word
Posted in 1997
Hi all >Mike Wrote> >>What is wrong with the following statement >>LET ok = ddeExecute("Winword","System","[FileOpen ABC123.doc]") >>I get syntax errors I looked up help on ddeEcecute for ixPictureButtons, there is a link to suggested syntax rules. Follow that link, an example command string specifies the following format : [file] [open ( "sales.txt" )] The example you posted above would then read : ddeExecute("Winword","System","[File] [Open ("ABC123.doc")]") Alternatively try the following : ddeExecute("Winword","System","[FileOpen ("ABC123.doc")]") One of these should work. >>BTW >>LET ok = ddeExecute("Winword","System", "[FileClose]") >>works fine! Yes, this example only has one token in the command string. As opposed to the File Open. I haven't tested this so it is not carved in stone, however using the correct syntax should put you on the correct path. Good luck. Dave david@west.co.za Senior Software Consultant The West Solutions Group Friends help you move...REAL friends help you move bodies!