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

Hide detail band on print

edited November 2008 in General
I want to hide the detail band when one of the field value is 0.
I tried the Detail Band onPrint event:
if FieldQty.AsInteger = 0 then
detailBand1.Visible := FALSE
else
detailBand1.Visible := TRUE;

The result is the report is blank at all.

I also tried:
if FieldQty.AsInteger = 0 then
detailBand1.Height := 0
else
detailBand1.Height := 0.3;

The result is the same.

Comments

This discussion has been closed.