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

how Report.DonePrinting works ?

edited November 2004 in General
Hi guys,

I have a situation when I need to avoid printing the last page.
I do the following on Report.onEndPage event handler:

if FSendInvoice and // my condition
(MyReport.FirstPass = False) and // to make AbsolutePageCount work I set
twoPass option
(MyReport.AbsolutePageNo = SICRep.AbsolutePageCount-1) // second last
page
then
MyReport.DonePrinting := true;

But it doesn't work. Am I missing something ?

Thanks,
Dmitry

Comments

This discussion has been closed.