meulth Posted March 29, 2016 Share Posted March 29, 2016 Hello dear jaspersoft community.im new to jaspersoft, so im sorry if i ask a question which is already answered. But i did not found any solution to my problem.I have a report ca. 300 pages and within this report there is a report for every "pfleger" which are arround 5 to 10 pages long. all works fine just the page numbering is somewhat complicated.I made a group with the field pfleger. In the group properties i set the reset page number on true.now i insertet twice the variable "page_number". one with evalution on now and the other on "[group] pfleger" and all looks fine with just one small problem. As soon as i enable reset page number. Jaspersoft adds a blank page at the of the report for one "pfleger". so its 1/5 to 5/5 instead of 1/4 to 4/4... the last page is always a blank page.Is it possible now to hide the last page? i disabled both the group header and group footer detail...i would appreciate any help.Thanks Link to comment Share on other sites More sharing options...
vitaly.makhaev Posted March 30, 2016 Share Posted March 30, 2016 There is ability to supress the footer on last page. >>as i enable reset page number. Jaspersoft adds a blank pagePlease check the event of creating the page number. If you upload the Report and provide the link, I could help more specifically. Link to comment Share on other sites More sharing options...
meulth Posted April 1, 2016 Author Share Posted April 1, 2016 group definition:<group name="report" isResetPageNumber="true"><groupExpression><![CDATA[$F{pfleger_id}]]></groupExpression></group> footer definition: <pageFooter><band height="13"><property name="local_mesure_unitheight" value="pixel"/><property name="com.jaspersoft.studio.unit.height" value="px"/><staticText><reportElement x="-40" y="1" width="100" height="10" forecolor="#C8C8C8" uuid="1addfed2-294f-4da7-b7af-ede348b90096"><property name="local_mesure_unitheight" value="pixel"/><property name="com.jaspersoft.studio.unit.height" value="px"/><property name="local_mesure_unity" value="pixel"/><property name="com.jaspersoft.studio.unit.y" value="px"/></reportElement><textElement verticalAlignment="Middle"><font fontName="DejaVu Sans" size="8"/></textElement><text><![CDATA[www.test.org]]></text></staticText><line><reportElement x="-45" y="0" width="470" height="1" uuid="5d783aa9-418e-4a55-9302-c325ba996948"><property name="local_mesure_unitheight" value="pixel"/><property name="com.jaspersoft.studio.unit.height" value="px"/></reportElement><graphicElement><pen lineWidth="0.5" lineColor="#C8C8C8"/></graphicElement></line><textField><reportElement x="225" y="1" width="100" height="10" forecolor="#C8C8C8" uuid="f2144bfc-4c12-4dbb-9099-889b7335379e"/><textElement textAlignment="Right"><font fontName="DejaVu Sans" size="8"/></textElement><textFieldExpression><![CDATA["Page " + $V{PAGE_NUMBER}]]></textFieldExpression></textField><textField evaluationTime="Group" evaluationGroup="report"><reportElement x="325" y="1" width="100" height="10" forecolor="#C8C8C8" uuid="86b431d8-b4e6-4b52-b7ec-5647ea1f934b"/><textElement textAlignment="Left"><font fontName="DejaVu Sans" size="8"/></textElement><textFieldExpression><![CDATA[" of " + $V{PAGE_NUMBER}]]></textFieldExpression></textField></band></pageFooter> thanks for your help Link to comment Share on other sites More sharing options...
meulth Posted April 4, 2016 Author Share Posted April 4, 2016 Any other ideas? Link to comment Share on other sites More sharing options...
meulth Posted April 8, 2016 Author Share Posted April 8, 2016 no one got any idea? i mean somehow you have to have an option to block this last blank page?? Link to comment Share on other sites More sharing options...
meulth Posted April 15, 2016 Author Share Posted April 15, 2016 hi thereall fine, its all my fault. i had a page break at the end of the report.. so the blank page at the end was all correct.sorry for you lost time on this question.solutiontake page x of y and give x evaluation time now and y evaluation time group <groupname> then the page numbering is all fine 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