dgriffin123d Posted February 27, 2015 Share Posted February 27, 2015 I understand that I can run a loclized report by logging in under a ceratin locale. What I would like to have the option of doing is allowing, for instance, and english user to specify a report in a different locale such as portuguese.I have looked through the community answers and haven't found a straightforward way to accomplish this. I tried creating an input control for REPORT_LOCALE, but that caused an error when choosing the report for generation. Can I accomplish what I want without a lot of custom code, or am I stuck to logging out then back in with a different locale setting? Link to comment Share on other sites More sharing options...
Solution elizam Posted March 2, 2015 Solution Share Posted March 2, 2015 If you just want to see how a report looks in another locale, you can pass a parameter in the URL - append &reportLocale=de for example, to see the report in German. This helps if you are troubleshooting your report localization. Link to comment Share on other sites More sharing options...
AnnMary.Thomas Posted March 5, 2015 Share Posted March 5, 2015 Locale locale = new Locale(Locale.JAPAN.getLanguage()); // your new locale in which the report to be generated paramsForReport.put(JRParameter.REPORT_LOCALE, locale); // Pass the locale as a param to the report 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