When I was using a sum variable, there was an option to have a blank if the result is zero. However in a calculated variable there is no option for this. What is the best way to achieve this, DisplayFormat maybe?
In the variable's OnCalc event, you can set its visibility. if Value = 0 then
Variable1.Visible := False
else
Variable1.Visible := True;
We usually recommend that the visibility of components be set in the band's BeforePrint event, but in this case, the OnCalc would be the only timing in which you could set the visibility for the variable.
Comments
if Value = 0 then
Variable1.Visible := False
else
Variable1.Visible := True;
We usually recommend that the visibility of components be set in the band's
BeforePrint event, but in this case, the OnCalc would be the only timing in
which you could set the visibility for the variable.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com