siddus Posted April 30, 2008 Share Posted April 30, 2008 Hi all! I'm having a problem with some reports that have a separate title page, and reports on the page number within the group --> Page 1 of 2, etc. I've set the page number to reset when group changes and it works fine when i don't have a title page, but when i add the title page, the first page of the first group says Page 2. How can I reset the page number for the very first group? Link to comment Share on other sites More sharing options...
Solution mmflynn Posted May 1, 2008 Solution Share Posted May 1, 2008 I read some earlier posts from Teodor and Giulio to get this for you: Create a new Report Group. size=312]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/resetPageGroup.png Select the Reset Page Number checkbox. You can leave everything else blank. After you click OK you'll be on the Groups dialog box. Click Move up to make your new group the first group. Create a new variable. You'll use this instead of the built-in PAGE_NUMBER in your footer. [file name=resetPageVariable.png size=16062] Variable Class Type: java.lang.Integer Calculation Type: Count Reset Type: Group Reset Group: the group you created in step 1 Increment Type: Page Variable expression: new Integer(1) [/ul] Edit the expressions used to show Page x of x. Replace $V{PAGE_NUMBER} with the variable you just created. [/ol][/ol] Should work -- good luck. Mary Post edited by: mmflynn, at: 2008/04/30 18:54 Link to comment Share on other sites More sharing options...
siddus Posted May 1, 2008 Author Share Posted May 1, 2008 Thanks alot!This worked a treat after I made a small change to it. Instead of the new group, I'm using the variable with the reset group set to my existing group, as it had to reset the page number when this group changed. :cheer: 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