Let's say you've report myReport located in c:\myapp\Reports directory and you want to create word document myreport.doc in the c:\myapp\Reports\Output directory. In your program that pprints report now replace REPORT FORM myReport ... with
Local oF2W
oF2W=NEWOBJECT("frx2word","msoexp")
oF2W.SaveFolder="c:\myapp\Reports\Output"
oF2W.DOC_FileName="myreport.doc"
oF2W.ReportHome="c:\myapp\Reports"
nSuccess=oF2W.ReportForm("MyReport")
>HI,
>
>thank you for your reply about export to file.
>
>I find some words about the FRX2Word as below :-
>
>*****
>To use the class, the class library msoexp.vcx is added to the target Project. The class library has no dependencies and can be freely copied where needed. FRX2Word can be invoked like any other class:
>
>oF2W=NEWOBJECT(¡§frx2word¡¨,¡¨msoexp¡¨)
>oF2W.SaveFolder=¡¨C:\My Documents\¡¨
>oF2W.DOC_FileName=¡¨Wordout.doc¡¨
>oF2W.ReportHome=¡¨C:\MyApp\Reports¡¨ && Optional (new to 1.5)
>nSuccess=oF2W.ReportForm(¡§MyReport¡¨)
>*****
>
>But... i am a new guy in VFP, i don't understatnd what is the step to join the new function.
>
>Can you help me, tell me the detail (step by step) to build-up the new function in my existing program
>
>Thanks a lot
--sb--