Jump to content
Changes to the Jaspersoft community edition download ×

Can´t pass params to report


Recommended Posts

By: frankrtg - francisco_rdz

Can´t pass params to report

2006-03-02 11:54

Hi all.

 

I'm trying to pass one single param to my rpeort and it doesn´t work. I can get the PDF file but the param is null.

PLease help me.

 

- I'm using jasperreports 1.2

- downloaded jasperasistant to create the jrxml file

 

my code:

 

JasperReport jasperReport;

JasperPrint jasperPrint;

Map parameters = new HashMap();

String out = "xls";

parameters.put("tituloReporte","Titulo del Reporte");

 

try {

jasperReport = JasperCompileManager.compileReport("reports/Reporte.jrxml");

jasperPrint = JasperFillManager.fillReport(jasperReport,parameters, new JREmptyDataSource());

 

 

 

By: Code_Slave - code_slave

RE: Can´t pass params to report

2006-03-05 13:55

when you use the param in your report, it HAS TO:

 

1.be in the right variable type ( in the report)

2. be in EXACTLY the same case and name. ( see your capital 'R')

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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