Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Output a Report to File
Message
De
10/07/2003 13:41:35
 
 
À
10/07/2003 13:36:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00808935
Message ID:
00808936
Vues:
16
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform