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

How to run a report in different languages based on parameter


simoskets

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

you need tho put a locale parameter in execution time. For example in java, set the JRParameter.REPORT_LOCALE for the reports paramenters map like this:

java.util.Map parameters = getParameters();java.util.Locale locale = new Locale( "en", "US" );parameters.put( JRParameter.REPORT_LOCALE, locale);JasperFillManager.fillReport( reportTemplate, parameters, dataSource );[/code]

I hope it works for you!

Link to comment
Share on other sites

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