maorm Posted June 3, 2010 Share Posted June 3, 2010 Hi, I am trying to create a generic "footer" subreport, which will contain the timestamp and page count.I am able to get the correct "page X of Y" when this is at the main report, but when I try implementing it in the subreport, it keeps failing. I have tried searching the forum, but could not find a solution. I tried creating a variable at the main report, setting evaluation time to report, and passing it as parameter.I tried setting evaluation time to report for all the parameters I pass to the subreport.Nothing seems to work. How can this be done?How can I get the subreport to display the correct "page X of Y" of the report? Thanks Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted June 3, 2010 Share Posted June 3, 2010 I suspect this is not possible, since the evaluation time of the subreport is always now, so JasperReports cannot wait untile the end of the report to run the subreport.Giulio Link to comment Share on other sites More sharing options...
somsak_tk Posted May 12, 2014 Share Posted May 12, 2014 Agree, i find many solutions to get $V{PAGE_COUNT} in subreport works. The only solution is use scriptlet variable to store $V{PAGE_COUNT}, but i still can't finished yet. 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