how to print no records when table.recordcount = 1
I'm trying to print no records in the detail band of my reports if the
table.recordcount of its datapipeline is equal to 1.
I have tried PageLimitReached in many events but it always prints.
Is it possible to do this from/with a ppbdepipeline property (not with the
ppreport class)?
Forgive my English, please...
table.recordcount of its datapipeline is equal to 1.
I have tried PageLimitReached in many events but it always prints.
Is it possible to do this from/with a ppbdepipeline property (not with the
ppreport class)?
Forgive my English, please...
This discussion has been closed.
Comments
False. You in the report's BeforePrint event, ie.
if (aTable1.RecordCount = 1) then
ppReport1.DetailBand.Visible := False
else
ppReport1.DetailBand.Visible := True;
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
because I have a lot of ppreports linked to the same pipeline.
I don't want to do this:
ppreport1.ppReport1.DetailBand.Visible := False;
ppreport2.ppReport1.DetailBand.Visible := False;
ppreport3.ppReport1.DetailBand.Visible := False;
ppreport4.ppReport1.DetailBand.Visible := False;
.
.
.
but this:
ppbdepipeline.something
Do you understand?
"Alexander Kramnik (Digital Metaphors)"
procedure TForm1.ppReportBeforePrint(Sender: TObject);
begin
if (aTable1.RecordCount = 1) then
TppReport(Sender).DetailBand.Visible := False
else
TppReport(Sender).DetailBand.Visible := True;
end;
and assign this single event handler to all the reports.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com