Jump to content

Page break in Excel and repeated Header on every page


sharkoff76

Recommended Posts

Hello!

I have huge report which generated in XLSX format. Count of rows over 3 000 000

For correct all rows divided by some principal and i get many pages in Excel . On every page count rows < 1 000 000

So i made it this way: 

    In SQL request  i make Page-switcher like this

<field name="PAGER_NEW" class="java.lang.String"/>
...    

<variable name="Var1" class="java.lang.String"/>
..

            <textField>
                <reportElement x="1020" y="0" width="10" height="15" forecolor="#FFFFFF" uuid="73246961-8f9a-45f4-8991-b5352aaf31b3">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                    <property name="net.sf.jasperreports.export.xls.break.before.row" value="true"/>
                    <printWhenExpression><![CDATA[$F{PAGER_NEW}.equals("1")]]></printWhenExpression>
                </reportElement>
                <textFieldExpression><![CDATA[$V{Var1}]]></textFieldExpression>
            </textField>


So work perfect but I want header on every page will the same

Like 

Page0  - header - detail data

Page1 - header - detail data

PageN - header - detail data

 

Now :

Page0  - header - detail data

Page1  - detail data

PageN  - detail data

 

How i can do it?

 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...