Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exporting db text to Word with styles
Message
From
08/06/1999 06:59:51
 
 
To
07/06/1999 13:42:25
Mandy Mccord
Public Interest Breakthroughs, Inc.
Albany, New York, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00227117
Message ID:
00227365
Views:
21
>I've got a database containing snippets of text needed for a tech doc being produced in Word. We're looking for a way to export specific fields/records of the database to the Word doc. We've been tinkering with mailmerges in Word, which might word, but what would seem a better solutionis if we could somehow embed codes in the database text fields that Word would recognize as bookmarks or styles instead of text. eg. field contents would be something like:
>
>"[Heading 1]This is some text that should go in the Word document."
>
>and "This is some text that should go in the Word document." would print in the Word doc with [heading 1] style applied to the text.
>
>Anyone heard of anything like this? Or is this just wishful thinking?
>
>thanks!
>
>Mandy

Mandy,

best solution for your problem would be to use the ole features of vfp and word not mail merge. You could define a template in word, with "placeholders" and then fill them from vfp (create a word object and then you have all the methods and properties of the word object model at your fingertips).

Hope this helps.
Vlad-Georg
Previous
Reply
Map
View

Click here to load this message in the networking platform