Jump to content
Changes to the Jaspersoft community edition download ×

PAGE_NUMBER problem


2005 IR Help

Recommended Posts

By: Julian Walls - julianwalls

PAGE_NUMBER problem

2004-03-17 03:57

Hi!

 

I'm running a billing report and grouping the report by client but I seem to be having a problem with the page numbers. After each client I want to reset the page number variable.

 

E.g.

 

Client1 has Page 1 of 2

and Page 2 of 2

 

Client2 has Page 1 of 1

 

What I end up getting is this:

 

Client 1 has Page 1 of 2

and Page 2 of 2

 

Client 2 has Page 3 of 3!!!!

 

I am using the isResetPageNumber="true" in the Client group and the following xml to display the page numbers

 

<textField evaluationTime="Now">

<reportElement x="270" y="10" width="20" height="20"/>

<textElement textAlignment="Center">

<font fontName="Helvetica" size="10"/>

</textElement>

<textFieldExpression class="java.lang.Integer">

$V{PAGE_NUMBER}

</textFieldExpression>

</textField>

 

<staticText>

<reportElement x="290" y="10" width="10" height="20"/>

<textElement textAlignment="Center">

<font size="10"/>

</textElement>

<text>of</text>

</staticText>

 

<textField evaluationTime="Group" evaluationGroup="Client">

<reportElement x="300" y="10" width="20" height="20"/>

<textElement textAlignment="Center">

<font fontName="Helvetica" size="10"/>

</textElement>

<textFieldExpression class="java.lang.Integer">

$V{PAGE_NUMBER}

</textFieldExpression>

</textField>

 

Any help is greatly appreciated!

 

Thanks

 

Julian

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...