mcguise Posted August 6, 2009 Share Posted August 6, 2009 Is there a way to set the maximum number of pages and warn the user when querying a report greater than a certain amount of pages in JasperReports?Thank You,Sean Link to comment Share on other sites More sharing options...
Teodor Danciu Posted August 21, 2009 Share Posted August 21, 2009 Hi, Yes, this is what we now call report governors.Basically, a governor is a global scriplet. They were introduced in JR 3.1.4.Check this config properties you could use:http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.governor.max.pageshttp://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.governor.max.pages.enabled I hope this helps.Teodor Link to comment Share on other sites More sharing options...
mcguise Posted September 3, 2009 Author Share Posted September 3, 2009 Teodor, Thank you for your response. Sean Link to comment Share on other sites More sharing options...
spea2020 Posted December 15, 2017 Share Posted December 15, 2017 thanks its really very useful properties,i am gettig null pointer exception after this key with particular value..jasperreport server is sending correct GovernorException but client jar containing RunReportAdapter.run() returning null while calling from rest service..is there anyway we can catch GovernorException. 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