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

avoid empty vertical space if a field is empty

edited June 2002 in General

Comments

  • edited June 2002
    Check out Demo 33 in the main reports demo in RBuilder\Demos\Reports for an
    example of suppressing spaces.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited June 2002
    If demo 33 doesn't do it for you (it won't work in my application because I
    have a list of prompts that I have on the screen/report that are not memo
    related). here is another method (requires Enterprise or design time code,
    which I have 0 in my app--a great reason to have Enterprise!):

    1) Put the field that may/may not print in a region Attach a BeforePrint
    event to the region that sets the visibity of the region based on the
    contents of the field.
    2) Put the formatting that comes after the conditionaly printed field after
    the region or sub-report (depending upon your needs). Shift this
    region/subreport relative to the region above it.

    That should work.

    Ed Dressel

    Team DM
This discussion has been closed.