dinkargupta
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by dinkargupta
-
-
Sorry about the version problem. I wrongly quoted version 1.5. it's 1.2.0
-
Hi,
We are facing following two issues with jasper 1.5. Please suggest solution for the same ASAP.
Thanks in advance:)
1. we need to have a subreport before Table of Contents(TOC) page. However, when we are trying to generate this the TOC page gets overlapped with the previous subreport page.
2. We need to trap the page number of one of the subreports and print it in the footer of all the subreports. We are able to trap it only when that subreport is executed from the master report. All previous subreports are able to display only the default value set for it.
Page Number issue in JasperReports 1.2.0
in Products
Posted
We need to trap the page number of one of the subreports and print it in the footer of all the subreports. We are able to trap it only when that subreport is executed from the master report. All
previous subreports are able to display only the default value set for it.
As an example, Say my report has 10 different subreports - one after another, and 4th report is a disclaimer. Right from page 1 to <last-page-of full report>, we want to print a footer such as "Please read the disclaimer on page <n> carefully". The <n> here is the page number on which the subreport "disclaimer"(4th subreport) is produced.
The options we have tried to solve this problem are :
1. Using evaluationGroup and evaluationType for evaluating the page number : for e.g.
<textField evaluationTime="Group" evaluationGroup="Disclaimer">
<reportElement x="780" y="20" width="75" height="15" />
<textElement>
<font reportFont="MyRoman" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
Here disclaimer is the name of the subreport whose page number we need to trap and display on the footer of every sub-report.
This gives the page number of the individual sub-report before disclaimer is evaluted. After disclaimer's evaluation it gives the last page number.
2. Used a variable and used resetType and resetGroup for its evaluation.
Before disclaimer the sub-reports contain the initialized value of the variable. But after discalimer evaluation it gives the disclaimer's page number
Post edited by: dinkargupta, at: 2006/09/11 10:55