One detail band does print if there is no data, and the DBCalc shows 1. There is a NoDataBehaviors property on the report which gives you some more control over what happens when there is no data. You may want to code a TppVariable to calculate with an Inc() call. Then if the record count is zero, then the variable's value can be set to zero.
Set the Report.NoDataBehaviors to include ndBlankReport. Then check this in the OnCalc of the variable:
uses ppTypes, .. if ppdaNoRecords in ppReport1.Datapipeline.State then Value := 0 else Value := Value + 1; ..
Thanks, I agree that a data aware counter should display zero if there are no records, even when one empty detail band prints. I was just trying to get a solution to ya:)
Comments
There is a NoDataBehaviors property on the report which gives you some more
control over what happens when there is no data. You may want to code a
TppVariable to calculate with an Inc() call. Then if the record count is
zero, then the variable's value can be set to zero.
Set the Report.NoDataBehaviors to include ndBlankReport. Then check this in
the OnCalc of the variable:
uses
ppTypes,
..
if ppdaNoRecords in ppReport1.Datapipeline.State then
Value := 0
else
Value := Value + 1;
..
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
just worked properly.
George
no records, even when one empty detail band prints. I was just trying to
get a solution to ya:)
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com