here is a start
tmp_file = SYS(2023)+LEFT(ALLTRIM(z_termid),8)+'.DOC'
IF create_doc(tmp_file)
xsafety = ddesetoption('SAFETY')
= ddesetoption('SAFETY', .F.)
xchannel = DDEINITIATE('Winword', 'System')
IF xchannel=-1
WAIT WINDOW NOWAIT 'Starting Word'
IF .NOT...
* FindWindow()
getwind = regfn("FindWindow","CC","I")
* Set the first parameter of the call to getwind 0, null.
wclass=0
winname= [Screen Title Application]
apphand=callfn(getwind,wclass,winname)
*If the call was successful, stop processing.
IF apphand<>0...
dbf2xml can be found on the web as well (somewhere)
*-- ASCII codes
#DEFINE TAB CHR(9)
#DEFINE lf CHR(10)
#DEFINE cr CHR(13)
#DEFINE cr_lf cr+lf
* Dbf2xml.prg
*************************
* PROCEDURE dbf2xml
PARAMETERS tctable, tcscope, tntabindents
PRIVATE lctable, lcalias...
Hi i am looking for a list of word/excel command that can be used in dde commands
Looking for the likes of and the explanation that goes with it for commands like:
= DDEEXECUTExchannel, '[MailMergeOpenDataSource "&tmp_file"]')
= DDEEXECUTE(xchannel, '[MailMergeToDoc]')
I know what...
We have a multi-user app running on a win 2000 net work with win200o workstation. Everything is seeminly oke , ther seems to be a problem with flushing the data to the server. After each teller transaction the flush command is used. But is seems that if the tables are not reopend after that on...
Hello,
Look at the following code:
= ddesetoption('SAFETY', .F.)
xchannel = DDEINITIATE('Winword', 'System')
IF xchannel=-1
WAIT WINDOW NOWAIT 'Starting Word'
IF EMPTY(cmd)
xchannel = -1
ENDI
RUN /n2 &cmd && cmd = fullpath for winword
xchannel = DDEINITIATE('Winword'...
Hi, you have to make sure that exel is running prior to ddeinitiate.
In order to do so you need to start exel (logic so far)
You could retrieve the exel location from the registry, (using for example the call32.dll from Rick Strahl) or store the path to excel ones during init of your app.
I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.