Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exporting db text to Word with styles
Message
From
08/06/1999 04:16:28
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
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:
00227350
Views:
20
>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

Hi,

If the text was always in the same format, headers, text etc, then you could use a mailmerge to acheive this. However, if the layout required was more dynamic, then you could use OLE automation to create a new word document, then type and format the text (using automation) for each individual document.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform