blosser Posted October 19, 2006 Share Posted October 19, 2006 My result report contain crosstab which had about 100.000 cells. When I use scrolling in JRViewer all report works slow. One of the decision is generate report into pdf, but I want to use JRViewer. I consider, JRViewer represent all cell as java components. I want to try represent report in JRViewer as Image and think it will be works faster in lagre report. How can I do it? Link to comment Share on other sites More sharing options...
lucianc Posted October 19, 2006 Share Posted October 19, 2006 See this bug. The fix of the bug consisted of a configuration property that determines when buffered images are used to render a report page in JRViewer, and a performance enhancement for the "direct" report rendering method. You can get the latest source from SVN and test whether this fix can improve the JRViewer performance in your case. Regards,Lucian Link to comment Share on other sites More sharing options...
blosser Posted October 19, 2006 Author Share Posted October 19, 2006 Thanks for answer, lucianc.I try to set property in my application, but result the sameCode:System.setProperty("net.sf.jasperreports.viewer.render.buffer.max.size","10000000000000000000"«») What I do wrong? Link to comment Share on other sites More sharing options...
lucianc Posted October 19, 2006 Share Posted October 19, 2006 Firstly this property is a Java long property, and 10000000000000000000 is a little too much for a long value (max is 9,223,372,036,854,775,807). Secondly, this should not be a system property, but a JR property. You need to doCode:JRProperties.setProperty(JRViewer.VIEWER_RENDER_BUFFER_MAX_SIZE, "1000000000000000000"«»);instead, or putCode:[code]net.sf.jasperreports.viewer.render.buffer.max.size=1000000000000000000in your jasperreports.properties (which should be placed on the classpath). Link to comment Share on other sites More sharing options...
blosser Posted October 19, 2006 Author Share Posted October 19, 2006 lucianc wrote:Code:JRProperties.setProperty(JRViewer.VIEWER_RENDER_BUFFER_MAX_SIZE, "1000000000000000000"«»);I can't find JRViewer.VIEWER_RENDER_BUFFER_MAX_SIZE property in JR 1.2.7 release.:( Link to comment Share on other sites More sharing options...
lucianc Posted October 19, 2006 Share Posted October 19, 2006 The bug I was telling you about was fixed after the 1.2.7 release. That's why I told you to get the latest sources from SVN. Link to comment Share on other sites More sharing options...
blosser Posted October 19, 2006 Author Share Posted October 19, 2006 All works fine arter update.Thanks a lot, lucianc. 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