Hi Evan,
I try frx2word and this is the code I used:
set classlib to msoexp additive
oF2W=NEWOBJECT("frx2word","msoexp")
oF2W.SaveFolder=lcHTMLFile
oF2W.HTML_FileName="mailrep.htm" && if you want an HTML file
*oF2W.DOC_FileName="mailrep.doc" && if you want a .doc file
* create the cursor for the frx
SELECT Tocfsum.ocom, Tocfsum.nom, Tocfsum.neto, Tocfsum.fechaped,;
Tocfsum.fechaprom, Tocfsum.observa, Tocfsum.condpag, Tocfsum.nrodep,;
Tocfsum.deposito, Tocfsum.dire, Tocfsum.loca, Tocfdet.codigo,;
Tocfdet.descri, Tocfdet.cant, Tocfdet.costo, Tocfdet.impor, Tocfdet.unidad,;
Tocfdet.envase, Tocfdet.divisor;
FROM ocompra!tocfsum LEFT OUTER JOIN ocompra!tocfdet ;
ON Tocfsum.ocom = Tocfdet.ocom;
WHERE Tocfsum.ocom = xoco ;
ORDER BY Tocfsum.ocom INTO CURSOR MICURSOR
IF USED("MICURSOR")
SELECT MICURSOR
* mailx6 is the frx
nsucces=oF2W.ReportForm("MailX6")
USE IN MICURSOR
ENDIF
RELEASE CLASS msoexp
>>When I run a report with Frx2word, what needs to be included with the report? Does the report need code in its init to create the data? Will the current cursor be used for the report? The documentation does give any clues.
>
>Anybody?
Carlos Etcheverry
Monte Grande
Buenos Aires
Argentina
Es mejor un mal dia de pesca que un buen dia de trabajo!