is there a chance to set the locale for a jasper report? I've tried creating parameters but doesn't work.
I need it for different number-formats (. or ,) for different languages/countries. Best would be as parameter, but any solution is helpful.
Or has someone else solved it in a different way? I need it only for a few reports, so it's ok if it's complicated to implement.
Regards
Gerd
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Normally yes.
But in this special case, it would be great if i can override it somehow (e.g. URL parameter), because this one is called by a script, and based on the parameters (like country or branch) we know which locale is needed (also background-image of jasper-report, ....)
If only current locale is possible, i could also create more script-users with different locales as a workaround, if it's too complicated otherwise.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
THANKS!!
Now it uses the current language, but i can override it using the lang-parameter. So i can switch between different number-formats (,. <> .,) without changing the report.
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
is there a chance to set the locale for a jasper report? I've tried creating parameters but doesn't work.
I need it for different number-formats (. or ,) for different languages/countries. Best would be as parameter, but any solution is helpful.
Or has someone else solved it in a different way? I need it only for a few reports, so it's ok if it's complicated to implement.
Regards
Gerd
Would the locale for the report match the language selected by the user for the art application?
Normally yes.
But in this special case, it would be great if i can override it somehow (e.g. URL parameter), because this one is called by a script, and based on the parameters (like country or branch) we know which locale is needed (also background-image of jasper-report, ....)
If only current locale is possible, i could also create more script-users with different locales as a workaround, if it's too complicated otherwise.
You can try the just released 6.7 version. In case of changing the locale per request, you can try and add the &lang parameter.
THANKS!!
Now it uses the current language, but i can override it using the lang-parameter. So i can switch between different number-formats (,. <> .,) without changing the report.
Thanks!