Page 1 of 1

DoublePass, ResetPageNumber and PageNumber / TotalPageCount

Posted: Fri Jul 03, 2009 11:32 am
by rsaladrigas
I have a report with 2 databands on a master-detail relationship.

For every master row, I need to create a new page and reset the page number.
If I have the Number of pass property set to Single pass everything
works as expected. However, I need to set the property to Double pass since I
must check in every Page Footer if it is the last page (using IsLastPage). But
when the report uses double pass something weird happens to the page numbers, since they
seem to reset for every page after the first master row....

What I'm trying to achieve is to print a text on the Page Footer only if it is in
the last page. So, for every master row I must get its details and a text on the last
page footer.

Just to clarify, the report looks something like this:

-Master Row (can be several pages)
--Details (Can be serveral pages)
-PageFooter (if it is the last footer, print text, start new page and reset page number)

Any hint on how can this be done?

I have also sent a message to support with the mrt file, and two mdc files, one with
the report in Single pass and another in Double Pass.

DoublePass, ResetPageNumber and PageNumber / TotalPageCount

Posted: Mon Jul 06, 2009 7:24 am
by Andrew
Hello,

Please use the PrintAtBottom property of the ReportsSummaryBand. This property should be set to true.

Thank you.

DoublePass, ResetPageNumber and PageNumber / TotalPageCount

Posted: Tue Jul 07, 2009 3:03 am
by rsaladrigas
Hi Andrew,
Thanks for your answer, but it seems I didn't explain my problem quite well.

The ReportSummaryBand prints only on the last page of the report, since I'm using ResetPageNumber for each master row what I would like to do is to find the last page of each set.

If I have 3 master rows, the page numbering will be reseted 3 times, and for each time the page numbering is reseted I'll have a last page (the last page of the set).
I'm using a PageFooter, which is printed in all pages but I need to know which are the last pages of each set so I can print something different on the Footer.

Here is an attachment with a capture of my bands, so you can see what we are talking about:

Image

The DataPagares content can be several pages long, and the same occurs with the DataPagares_Detalles. I tried to Reset the page number on the Footer1 but it Resets the numbering on the same page where the details are printed, and I need to reset it on the following page. Where do I have to reset the page numbering? and how to check for the last page of each set (not the last page printed)?


Any hint?


DoublePass, ResetPageNumber and PageNumber / TotalPageCount

Posted: Wed Jul 15, 2009 5:40 pm
by Edward
Hi Roger,

Thank you for explanation in detail, your e-mails to support.

I believe that the workaround with only one master record per report will sort the problem out.

Thank you.