How To insert custom pagination beyond page format

Hallo everybody.

[Using Jaspertudio 6.1] I'm currently having issues with a report that must be presented on the browser through the jasper user interface.
We can not use the default page formats (ISO standards) and we want the report to flow beyond the botton of the page, so that the user can read data without hitting next continuously.
Now the problem is that, on chrome, the report is sluggish as hell because too much data is loaded into the page (when rendering with "ignorePagination").
So, we'd like to set page breaks but also that those page breaks will not be commanded by page format, so that the page can flow beyond an A3 page and break when a particular Group resets.

Is a behaviour like this possible without touching java code?



francesco.basenghi_1's picture
Joined: Mar 29 2016 - 1:27am
Last seen: 5 years 6 months ago

1 Answer:

Check this jrxml. the page breaks at each year... this is oracle sql.

The height is set at 15000 pixels which i believe is totally sufficient for any requirement.


<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version using JasperReports Library version 6.2.0  -->
<!-- 2016-12-02T14:03:08 -->
<jasperReport xmlns="" xmlns:xsi="" xsi:schemaLocation="" name="sss" pageWidth="2000" pageHeight="15000" orientation="Landscape" columnWidth="1960" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="d636513c-6fad-4279-973d-754c6d542965">
    <property name="" value="PRODSUP"/>
    <property name="" value="pixel"/>
    <property name="" value=""/>
        <![CDATA[select  (trunc(sysdate+1) + level -1) as business_date, extract(year from (trunc(sysdate+1) + level -1)) year
from    dual
connect by sysdate + level -1 < sysdate + 5000]]>
    <field name="BUSINESS_DATE" class="java.sql.Timestamp"/>
    <field name="YEAR" class="java.math.BigDecimal"/>
    <group name="YEAR" isStartNewPage="true">
            <band height="30">
                    <reportElement mode="Opaque" x="0" y="0" width="100" height="30" backcolor="#FF0400" uuid="59706528-fe71-4ae4-8d62-ed22c89b0b51"/>
        <band splitType="Stretch"/>
        <band height="30">
            <textField pattern="MMM dd, yyyy">
                <reportElement x="0" y="0" width="392" height="30" uuid="7e28de3c-2a78-4a36-8b56-419c431512de"/>

reportdev's picture
Joined: Oct 12 2015 - 12:05pm
Last seen: 9 months 1 week ago