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

Conditional line

edited April 2004 in General
(Newbie) I want to conditionally print a line memo field in the data band.
If the there is nothing in the memo field, I do not want a blank line to
show up on the report. How do I accomplish this? thanks.

Comments

  • edited April 2004
    Yes, but what if the memo field in underneath another field. This would
    make the data band 2 lines high. If I do not print the the memo field, the
    detail band is still 2 lines high..

  • edited April 2004
    Hi Rob,

    Inside the DetailBand.BeforePrint event, you could check if the memo field
    has a value and toggle the visibility of the DBMemo component accordingly.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2004
    Hi Rob,

    Be sure you have the DetailBand.PrintHeight set to phDynamic. This will
    make the band snap to the correct size depending on the visible components
    present.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2004
    This is how I handled one of those.

    On the TppMemo component, you will see a property called
    "ShiftRelativeTo". Just assign this to the component prior to the memo
    component. This should solve your problem.

    If not, you can create new grouping just for the memo. This grouping
    would have the same data grouping as it did before. Now, the TppMemo
    component is all by itself. With this approach, you can use the Nico's
    suggestion.

    Hope this helps. 8)

    SeHun

This discussion has been closed.