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

Conditionally Printing Group Separators

edited November 2003 in General
Hi,

Using D6 sp2 and RB 7.03.

I am looking for suggestions. I have a report that lists a bunch of orders,
starting with sells and then buys. I need to put a separator between the
sells and the buys. The problem is that sometimes there are only sells and
sometimes there are only buys and the separator still needs to print. Is
there a way that I can print a group footer on the orders that are sells,
and print a group header on the orders that are buys only when there are no
sells? This is an example of how it would look when there are buys and
sells.


Sell 5 4320
Sell 5 4440
----- 5000 (separator) -----
Buy 5 6500
Buy 5 7000

Thanks,
Brad Ostercamp

Comments

  • edited November 2003
    Hi Brad,

    Try creating a global variable that contains the value of the initial group
    break value. Then, being sure the group footer/header's visibility is
    initially set to false, check to see that the initial group break value is
    equal to the current value of the grouping field inside the
    DetailBand.BeforePrint event. If they are ever not equal, you know that you
    have both "Sells" and "Buys" and you can set the visibility of the group
    bands to True.

    --
    Best Regards,

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