Jump to content
Changes to the Jaspersoft community edition download ×

Help with parameters!!!


ktrinad

Recommended Posts

By: Miko Yung - hly

Help with parameters!!!

2003-04-30 13:49

I'm having a question about the parameters.

In the webapp which comes with IReport, it shows how to add parameter.

 

Map parameters = new HashMap();

parameters.put("ReportTitle", "Just Report Name");

parameters.put("myParaeter", "This is Value");

 

But i'm trying to call the function,

byte[] bytes = null;

 

try

{

// Connection conn = new Connection(

bytes =

JasperRunManager.runReportToPdf(

reportFile.getPath(),

parameters,

new WebappDataSource()

);

}

The third parameter in the runReportToPdf requires either java.sql.Connection

or JRDataSource, do I need to call the connection again because I had made a

connection in the XML file.

 

thanx a lot

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