mulcamd Posted May 3, 2012 Share Posted May 3, 2012 I want to show the report name in the Title.How or where can I find it, with or without scriptlet? Link to comment Share on other sites More sharing options...
mfirkser Posted May 3, 2012 Share Posted May 3, 2012 Maybe pass the title as a parameter Link to comment Share on other sites More sharing options...
mulcamd Posted May 3, 2012 Author Share Posted May 3, 2012 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 More sharing options...
mulcamd Posted May 14, 2012 Author Share Posted May 14, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now