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

Richtext Mail Merge Question

edited June 2004 in General
I'm using the richtext mailmerge to print letters based on a
name/address datasource. Some addresses have 4 lines (name, adr1,
adr2,city st zip) while others have only three lines of text
(name,adr1,city st zip). Is there anyway to suppress the blank line
in those letters that only have three lines of text?

Thanks

Craig

Comments

  • edited June 2004
    Hi Craig,

    Unfortunately there is no built-in way to "squeeze" a mail merge RichText.
    You may however be able to check the field value inside the
    DetailBand.BeforePrint event and if a certain value is null, edit the
    RichText manually using the SelText property to temporarily remove one of
    the field tags from the rtf code. This is possible using a TppMemo
    component rather than a RichText.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.