Jasper Ideas

export xlsx file name set dynamically from field values

If users want to save a file name as per the field values from report, instead of Jasper server downloading the file and giving it a default name as per report name.

For example, I have a report where user enters it parameter via input controls, then when report is exported in xlsx format the file name should be like this:

<qi_cust_cd><prnt_cd><invoice_period>.xlsx

<qi_cust_cd> is from user input, and <prnt_cd><invoice_period> are values extracted from database table columns.

The work sheet names can be set dynamically from field values, if same can be done for file name, this enhancement will be helpful to users.

  • Guest
  • Jan 12 2023
  • To be Reviewed
Components JasperSoft Studio, JasperReports Server
  • Attach files