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

How can i pass a .txt file as parameter to Jasperreport at Eclipse


amit.nanote

Recommended Posts

Hi, 

I am using eclipse integrated JasperStudio. 

My requirement is to provide a file or say list of parameters to jasperreport in which one parameter can have multiple values or file location holding those values e.g. 

param1 - {list of ids} or {Filename with its respective location} --> file having list of ids in thousands

param2 - report start date

param 3 - report end date

param 4 - Some selection value

param 5 - some flag

param 5 - {list of ids} or {Filename}

....

Param 25 (CurrentTimestamp)

I am seeking solution using design view.

Thanks in anticipation. 

 

Regards

Amit Nanote

 

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Hi All, 

 

Can we treat that parameter file as datasource and use a data connection to call that datasource in our current to report. for eample - there is a data souce params which have the paramters in a xls or csv file. 

 

Our report "samplereport.jrxml" have to use that data adpater to use above mentioned data source to use all the listed parameters in current report. Say params.xls file having list of ids, start date, end date etc. can we access these parameters as params.record1 or params.recordx to use them in current report. 

If yes. How?

Regards

Amit 

Link to comment
Share on other sites

  • 4 weeks later...

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