Henry Posted December 17, 2007 Share Posted December 17, 2007 Hello, i'am using jasperserver 2.1.0. When create a report via the web interface sometimes the last report page are not displayed. At the moment i think this happens only with 2 pages reports. I create a 2 pages report => 1 page is visible.I press the export to pdf button => 2 pages in the pdf document. If i create the same report in ireports then i have always 2 pages. if i do the same with reports that have 3 or more pages always all pages in the web page are visible. Regards, Henry Link to comment Share on other sites More sharing options...
lucianc Posted December 17, 2007 Share Posted December 17, 2007 This is bug introduced in 2.1 (and fixed after the release). To fix it, replace WEB-INF/jsp/DefaultJasperViewer.jsp with the attached file, or manually edit the file and change the following lineCode:<c:if test="${lastPageIndex > 1 or configurationBean.paginationForSinglePageReport}">toCode:[code]<c:if test="${lastPageIndex > 0 or configurationBean.paginationForSinglePageReport}"> Regards,Lucian [file name=DefaultJasperViewer.zip size=2193]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/DefaultJasperViewer.zip[/file]Post edited by: lucianc, at: 2007/12/17 10:50 Link to comment Share on other sites More sharing options...
Henry Posted December 17, 2007 Author Share Posted December 17, 2007 Hello Lucian, thanks for the fast answer. It works. :) Regards, Henry Link to comment Share on other sites More sharing options...
itmatrix Posted February 13, 2008 Share Posted February 13, 2008 Hi, I had the same problem when i have a report of two pages JasperServer only shows the first page. I tried the above solution it does not work. However, when i changed the following code in the DefaultJasperViewer.jsp it worked finely. Code:<c:when test="${pageIndex > 0}"> To: Code:[code]<c:when test="${pageIndex >= 0}"> Regards, Link to comment Share on other sites More sharing options...
lucianc Posted February 14, 2008 Share Posted February 14, 2008 itmatrix wrote:I had the same problem when i have a report of two pages JasperServer only shows the first page.I tried the above solution it does not work. How can this be reproduced? I've tried a two page report, and it worked fine. The change you suggested results in "First page" and "Previous page" button becoming enabled when the user is located on the first page. Not only that I don't see how would this fix the 2-page report bug, but it's also wrong and results in errors when the "Previous page" button gets clicked. Regards,Lucian Link to comment Share on other sites More sharing options...
biaggi Posted August 26, 2008 Share Posted August 26, 2008 The patch works for me too :S 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