Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to define letter template, merge, and print form VFP
Message
From
14/11/2004 21:36:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
04/11/2004 14:52:57
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00958222
Message ID:
00961296
Views:
25
I don't know how to print an RTF. But for the merging part, I suggest that you tell your users to use certain reserved characters for the fields, for example: < nombre > or < apellido > or whatever name you choose to give your fields.

Then, SCAN through your data table, replacing and printing once for each record.

As an alternative to the RTF TextBox, you might also consider connecting VFP with Word, either with or without Automation. Without Automation, it should be quite simple to program: have a VFP option to export to dBASE III or Excel format, and the user does the rest in Word.

>We would like to give our users the capability to define a letter template in a Rich Text Format box, merge it with data, and print it all from within our application.
>
>How can I accomplish this?
>
>TIA,
>
>Alex
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform