barry-cw Posted January 6, 2014 Share Posted January 6, 2014 Hi,I want to have a report where the odd page contains the report data, but the even pages to contain nothing more than static text because the report is printing duplex. How may this be achieved?Thanks! Link to comment Share on other sites More sharing options...
Ankur Gupta Posted January 6, 2014 Share Posted January 6, 2014 Hi, Try using proper breaks, the break element can be found in palette. Using breaks will allow to restrict the static text in the respective pages.Hope that this helps. Thanks,Ankur Guptahttp://ankurthetechie.blogspot.in/ Link to comment Share on other sites More sharing options...
barry-cw Posted January 6, 2014 Author Share Posted January 6, 2014 But where would one place the break? In what panel? I need a page header and footer on the 'even pages' where the entire contents of the even page (a full sheet of A4) is static text, then the detail continuing on onto the next odd page. And the issue of having a full sheet of A4 might run into problems with band + margins exceeding page sizes? or will it work ok due to the break? Link to comment Share on other sites More sharing options...
stasp Posted January 6, 2014 Share Posted January 6, 2014 Try adding a "Print When Expression" property to all report bands (and/or report elements within bands) based on $V{PAGE_COUNT} variable. When page count is odd the expression should return true (and thus the bands should be printed), and when the page count is odd the expression should return false. The expression should be something like this:new Boolean($V{PAGE_COUNT}.intValue() % 2 != 0)Also add a static text to one of report bands and set an opposite "Print When Expression" for it, e.g.:new Boolean($V{PAGE_COUNT}.intValue() % 2 == 0) Hope this helps.- Stas Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now