Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Word for Reports
Message
De
01/07/1998 05:35:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
30/06/1998 15:02:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00113074
Message ID:
00113288
Vues:
24
>I am trying to use VFP to create a relatively complex report in Word. I've tackled the basics of instantiating a Word object and inserting some "raw" VFP data into it. However, I cannot get Word to create nicely formatted tables to display the data. What is the syntax needed to create a blank table in a Word document, set each column's formatting, and populate the table with data from a VFP cursor?
Hi Fred,
For most tasks as others said macros are good to see code needed. In your case however you describe a typical insertdatabase (get data from VFP and format the table). For reports I think it's easiest to create a template in word and use it with mailmerge. Take a look at Files\Classes section for a mailmerge class. Class code also includes getting data from VFP and formatting the table (although was not needed for a mailmerge).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform