Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Output a Report to File
Message
From
10/07/2003 13:41:35
 
 
To
10/07/2003 13:36:11
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00808935
Message ID:
00808936
Views:
17
>This is in Fox 6. I would like to write a report to a file that can be read by MSWord or Exel. Is this possible?
>
>Thanx
>Koot

Yes. You can always copy your data directly to Excel with COPY TO filename TYPE XLS albeit with an older driver that creates an old file version of Excel, but Excel can open it just fine.

For Word, you can use FRX2Word (here in the libraries). You may be able to recompile in VFP6 (ask Fabio if in doubt, as I have not used it).

For more (and absolute) control, you can use MS Word and Excel through COM Automation. It is fairly easy to do, generally by creating and saving a macro in Excel or Word, then translating the VBA-gerated code into VFP. It is fairly similar and you should be able to deasily understand most of it. You can always ask here when you have doubts on specific examples.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform