Jump to content

Scheduling: Use Paramter "date" for File Output Name


pentaloc

Recommended Posts

 Hi all,

 

can i use parameter of  the report or input control for the file name in the JasperServer Scheduling?

The Report is created every day in the morning, but the data in the report depends on a 

different date (about one week before creation) as creation.

 

Thanks in advance, pentaloc

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Yes, you can name a report based on field name,parameter etc..

Example: for Excel 2003

 

You can set the property net.sf.jasperreports.export.xls.sheet.name in Property Expression on Elements like (Line,Satic Label).

 

In Property Expression:

Name: net.sf.jasperreports.export.xls.sheet.name

Value: $P{Paramater_name}

 

 

Regards,

Ansul Gupta

Link to comment
Share on other sites

  • 7 months later...
  • 4 years 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...