Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Export REPO to ????
Message
 
 
To
22/03/2002 08:16:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00635375
Message ID:
00635971
Views:
11
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"  && Directory where to put created document
oF2W.DOC_FileName="myreport.doc"   && the name of created word document
oF2W.ReportHome="c:\myapp\Reports"   && The directory where report located
nSuccess=oF2W.ReportForm("MyReport")   && Pass report name as parameter
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform