Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to define letter template, merge, and print form VFP
Message
De
14/11/2004 21:36:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
04/11/2004 14:52:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00958222
Message ID:
00961296
Vues:
24
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform