Hide detail band on print
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.
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.
This discussion has been closed.
Comments
BeforeGenerate and see if you get the results you need.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Yes, it works.
Thanks