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?
1 Answer:
Posted on May 9, 2023 at 7:12am
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 );
I hope it works for you!
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.