Jump to content
We've recently updated our Privacy Statement, available here ×

henry.cui

Members
  • 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

Everything posted by henry.cui

  1. http://community.jaspersoft.com/questions/893771/printing-page-x-y-single-textfield-logic-jasper-ultimate-guide-section-1922 The link above states this trick only works for single flat report.
  2. I am having the same issue. The problem is possibly caused by subreport. A flat report may still work. Not sure if this forum is still supported by committers.
  3. Hello Jaspersoft Community, I have the following requirement: 1. If the report has more than 1 page, display the page number on the right, display text "For internal Use Only" on the left. 2. If the report has 1 page, do not display the page number, display text "For internal Use Only" in the middle. I googled it, and someone suggested the following: /**************************************************************************************************** Create a variable like: <variable name="totalPages" class="java.lang.Integer" resetType="None" incrementType="Report"> <variableExpression><![CDATA[$V{PAGE_NUMBER}]]></variableExpression> </variable> Based in variable totalPages to hide/show contents on page: In some element of page set in property 'Print When Expression' a expression, for example: ($V{totalPages} == 1) || ($V{totalPages} == 2) || ($V{totalPages} % 2 == 0) *****************************************************************/ This does not work for me. Both pages put the text "For internal Use Only" in the middle. There is no page number. Some people suggested this cannot be done because "We cannot use late evaluation in variables". How to solve my scenario?
×
×
  • Create New...