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

More on Multiple Bands in the DetailBand

edited July 2004 in General
Nico Cizik (Digital Metaphors) wrote:

text.
report
Thanks Nico for your suggestion about regions! I'm having a problem
printing either 1 or 2 bands in a detailband as determined by condition
A. I have tried 2 approaches with some success, but not good enough for
my application. I'm printing a receipt for a Point of Sale application.
The detail band lists all items purchased in the first band. If there
is a discount on an item a second band in that record would show the
savings. Condition A evaluates whether there is a discount.

The first approach, and the one recommended by you, is to use the
BeforePrint event. When I do I find the number of lines printed to be
determined only by the last record. For example, assume there are 3
records and only the second meets condition A for 2 lines. The first
and last record should have only one line. The report prints with only
1 line for all 3. How can I control the number of bands for each
individual record?

The second approach I have tried is to use a Variable object to evaluate
condition A for each record. This works great, but there seems to be no
way to determine which band is printing and so I cannot control the
visibility of the objects. BandsPerRecordCount is a read only property.

I really appreciate all of your help!

Gerry Tomlin
gktomlin@verizon.net

Comments

This discussion has been closed.