Hi all,
I need to create a word file from a report, but no word doc. is create on the disk, this is my code.
SELE mprior, mid_de_supe,mn_regi, mdatei,mevent
mtimesol,maccion, mdatecre;
FROM tblbop into cursor myreport;
WHERE mdatei >=mdatei .and. mdatei<=mdatef
ORDER BY datei
LOCATE
CREATE REPORT c:\sapa\myreport2 from myreport
SET CLASSLIB TO c:\sapa\msoexp.vcx
oRep = CREATEOBJECT("frx2word")
orep.html_filename="myDoc.htm"
oRep.doc_filename="myDoc.doc"
orep.reportform("c:\myReport2.frx")
myFile="mydoc.doc"
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, STRING cAction, STRING cFileName, ;
STRING cParams, STRING cDir, INTEGER nShowWin
=ShellExecute(0,"open",myfile,"","",1)
I need to create a word file from a report, but no word doc. is create on the disk, this is my code.
SELE mprior, mid_de_supe,mn_regi, mdatei,mevent
mtimesol,maccion, mdatecre;
FROM tblbop into cursor myreport;
WHERE mdatei >=mdatei .and. mdatei<=mdatef
ORDER BY datei
LOCATE
CREATE REPORT c:\sapa\myreport2 from myreport
SET CLASSLIB TO c:\sapa\msoexp.vcx
oRep = CREATEOBJECT("frx2word")
orep.html_filename="myDoc.htm"
oRep.doc_filename="myDoc.doc"
orep.reportform("c:\myReport2.frx")
myFile="mydoc.doc"
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, STRING cAction, STRING cFileName, ;
STRING cParams, STRING cDir, INTEGER nShowWin
=ShellExecute(0,"open",myfile,"","",1)