getting the page number for the printed component
Posted: Thu Oct 18, 2012 10:45 am
Hello!
I created a report, which contains several report title bands and report summary bands, the last summary band is a band for signatures printed on the bottom of the page. The band for signatures is always printed, but the other summary bands are printed conditionally - based on a value from the input xml. My problem is: if the report is printed on 2 pages or more, I need to make sure that the signature band is not alone on the last page - there must be another summary band printed together with the signature band. The summary bands (except the signature band) must be printed on the top of the page. I am able to get the band which is the last one before the signature band, but I have no idea how to check if it is printed on a same page as the signature and then force the print on a new page if the summary band is going to be printed on the next page. Is there a way to solve my problem?
Thank you for the response.
I created a report, which contains several report title bands and report summary bands, the last summary band is a band for signatures printed on the bottom of the page. The band for signatures is always printed, but the other summary bands are printed conditionally - based on a value from the input xml. My problem is: if the report is printed on 2 pages or more, I need to make sure that the signature band is not alone on the last page - there must be another summary band printed together with the signature band. The summary bands (except the signature band) must be printed on the top of the page. I am able to get the band which is the last one before the signature band, but I have no idea how to check if it is printed on a same page as the signature and then force the print on a new page if the summary band is going to be printed on the next page. Is there a way to solve my problem?
Thank you for the response.