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

Show report name in title


mulcamd

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You misunderstood me.

I want to have the report name to appear in the title of the report.

Ofcourse I could type it, but my question is: is there a way to retrieve the name of the report or the name of the report file?

Is the name stored in some parameter, variable where it can be retrieved, for example with a scriptlet. 

Link to comment
Share on other sites

  • 2 weeks later...

Is there a way to determine the reportname?

At the top level in iReport there is the property Report name, see also the XML of the JRXML file.

Is it possible from a scriptlet to retrieve the value of this name attribute?

Code:
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="XXXXXXXXXXXXX" language="groovy" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
Link to comment
Share on other sites

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