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

Eliminating blank lines in end user report

edited March 2006 in End User
How do I set up a mailmerge address such as:

Name
Address1
Address2
City, State Zip

So that in the event address2 is blank the line is suppressed. I am sure
this is easy but I haven't tumbled on to it

Thanks
Dennis McGuire

Comments

  • edited March 2006
    Dennis,

    One option is to use a memo and in the OnPrint event for the object, add
    each address line (e.g., Memo1.Lines.Add(Pipeline['Name']);), but only add
    the address2 line if it is not blank.

    --

    Bob

  • edited March 2006
    Hi Dennis,

    Bob is correct. If you would like to see an example of this, take a look at
    demo 33 (dm0033.pas) located in the \RBuilder\Demos\1. Reports\...
    directory.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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