java - How to access a parameter in jrxml file and Print it? -
my query is, have set parameter in java file given below
map<string, object> parameters = new hashmap<string, object>(); parameters.put("reporttitle", "mrsg quarterly report");
how access in jrxml file , print text?
you need declare parameter in jrxml
<parameter name="reporttitle" class="java.lang.string"></parameter>
then call in text field
<textfield isblankwhennull="true"> <textfieldexpression class="java.lang.string"><![cdata[$p{"reporttitle"}]]> </textfieldexpression> </textfield>
Comments
Post a Comment