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

Jasper report parameters


kevinjia1984
Go to solution Solved by sanbez,

Recommended Posts

Hi all,

I'm new to jasper report and I'm using ireport 4.0.1 for jrxml design. Just want to ask if I put some new values in the parameter map when calling JasperFillManager.fillReport, Do I have to create some new parameters in ireport regarding the keys I set in the parameter map when calling JasperFillManager.fillReport or all the new parameters will be inside "REPORT_PARAMETER_MAP"? For example:

Map parameters = new HashMap();

parameters.put("value1", value1);

parameters.put("value2",value2);

JasperPrint jasperPrint = JasperFillManager.fillReport(myProgramStream, parameters, jasperReportDS);

So in ireport, the value1 and value2 have already been in REPORT_PARAMETER_MAP or I have to create two new parameters named "value1" and "value2" in the related jrxml?

Many thanks for any help. 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

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