ndbabu Posted September 29, 2009 Share Posted September 29, 2009 Hi, Is it possible to print some message after reaching the maximum number of pages and complete the report filling?I already know about the governor, which will through Exception after reaching the maximum number of pages. Instead it should print some message after maximum number of pages and complete the report filling. Is this possible in the latest version of JasperReports? Thanks & Regards--ndbabu (Dilli Babu N) Link to comment Share on other sites More sharing options...
Teodor Danciu Posted September 29, 2009 Share Posted September 29, 2009 Hi, You just implement your own governor and make it do what you want, if the built-in governor does not do what you need.Governors are pluggable and you are not forced to use the ones we ship. You can create your owns. That was their purpose. I hope this helps.Teodor Link to comment Share on other sites More sharing options...
ndbabu Posted September 29, 2009 Author Share Posted September 29, 2009 Hi, How can I write my own governor and plugin it? Can you point me to some documentation/example about the same?Thanks for your reply. Thanks,--ndbabu (Dilli Babu N)Post Edited by ndbabu at 09/29/2009 16:07 Link to comment Share on other sites More sharing options...
Teodor Danciu Posted September 29, 2009 Share Posted September 29, 2009 Hi, Only the JasperReports Ultimate Guide has documentation about governors, but if you look at the source code of JR and see how the two built-in governors are created and registered, you will understand what you need to do in order to create similar governors.Note that governors are just scriptlets that can be applied accross all reports in a JR deployment. I hope this helps.Teodor Link to comment Share on other sites More sharing options...
ndbabu Posted September 29, 2009 Author Share Posted September 29, 2009 Hi, Thanks for your prompt reply. It really going to solve my problem.Thanks,--ndbabu (Dilli Babu N) Link to comment Share on other sites More sharing options...
ndbabu Posted September 30, 2009 Author Share Posted September 30, 2009 Hi, I implemented the scriptlet to control the maximum number of pages by cleaning the data source and then print the message after the maximum page. But this is failing in case cross tabs report. Any suggestions for stopping the report filling after certain number of pages in case of cross tabs report? Post Edited by ndbabu at 09/30/2009 17:27 Link to comment Share on other sites More sharing options...
ndbabu Posted September 30, 2009 Author Share Posted September 30, 2009 Hi, I implemented the scriptlet to control the maximum number of pages by cleaning the data source and then print the message after the maximum page. But this is failing in case cross tabs report. Any suggestions for stopping the report filling after certain number of pages in case of cross tabs report? Thanks & Regards,--ndbabu (Dilli Babu) Link to comment Share on other sites More sharing options...
jainreshu11 Posted March 26, 2010 Share Posted March 26, 2010 Hi,i also want to do the same in my reports.can you provide me the code how did you write the scriptlet and used it in your template in order to limit the number of pages. 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