Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert report into MS Word
Message
 
 
À
20/08/2001 10:07:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00546195
Message ID:
00546208
Vues:
14
>Did anybody try to save VFP 6.0 report as a MS Word document.
>An application I downloaded from UT has some bugs.
>Your help is appreciated.

Utilities that will convert a VFP report to a Word document will have some problems to overcome. The best way is to use OLE automation and just send your data directly from VFP to a Word document or template and not use the VFP report writer at all.

What I did was create placeholders [variables] in a Word document where VFP data needed to be inserted. I placed these variables between {} to make them distinguishable from actual Word text. I then call Word's Search and Replace utility from VFP to replace these variables with the appropriate data from VFP.

There are somewhat easy ways to create strings in VFP that can be sent to the Word document then converted to Word tables as well.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform