I have a foxprow2.6 app which I set up for an association I'm involved with and every so
often I have to tweak a report but it basically runs well so it's never been replaced.
For the last few years they've run seminars and I've printed out mail merge word docs using
dde and it's been fine.
Now, we're using the same PC (another good workhorse) and apart from applying win 2000
service packs nothing has changed
BUT the dde stuff no longer works.
Here's my code, any ideas on what's gone wrong?
iChannel = DDEInitiate("WinWord", "System")
* = DDEExecute(iChannel, "[AppMaximize]")
*// falls over on this line with
*// Ambiguous name detected: TmpDDE
= DDEExecute(iChannel, '[FileOpen "'+lcpath + lcfile+'"]')
* = DDEExecute(iChannel, '[FileOpen("'+lcpath + lcfile+'")]')
= DDEExecute(iChannel, '[FilePrintSetup "\\DELL-500\Brother HL-1260"]')
= DDEExecute(iChannel, '[FilePrint]')
= DDEExecute(iChannel, "[FileCloseAll]")
= DDETerminate(iChannel)
thanks
Sarah
Sarah King
pcpropertymanager.com