simoskets Posted May 4, 2023 Share Posted May 4, 2023 How to run a report in different languages based on parameter given by the user and not based on which counrty the report will run? Link to comment Share on other sites More sharing options...
anish.rai Posted May 8, 2023 Share Posted May 8, 2023 Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times. Link to comment Share on other sites More sharing options...
huargo Posted May 9, 2023 Share Posted May 9, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now