Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Word for Reports
Message
From
01/07/1998 05:35:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
30/06/1998 15:02:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00113074
Message ID:
00113288
Views:
23
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform