Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Form Letters via code.

edited December 2001 in General
How can I create a form letter in code vs using the RichTextEdit and doing
it in the IDE?

Thanks!
Tom.

Comments

  • edited December 2001
    You can assign the rich text to the rich text component using the
    LoadFromFile method or set the RichText string property. Then the only thing
    you need to do is parse through the rich text and add the tags
    for the data fields and then set MailMerge to true.

    If you are getting the rich text from a TRichEdit there is a handy article
    in our RichText TechTips:
    "Copy RTF data from TRichEd to TppRichText"


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.