This is a migrated thread and some comments may be shown as answers.

Unable to Change Culture (WindowsService)

2 Answers 176 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sascha
Top achievements
Rank 1
Sascha asked on 21 Jun 2018, 11:52 AM

Hi all

When rendering reports inside a WindowsService the CurrentUICulture is taken from the users configuration and CAN NOT be changed. Within a normal executable this works fine. In general.. To have the localisation depending on the threads culture is not always a good way to control the language output. Is there another way to force localisation for a certain culture? and if not, this would be a big issue to solve!

 

Many thanks

Sascha Bauer

2 Answers, 1 is accepted

Sort by
0
Accepted
Silviya
Telerik team
answered on 26 Jun 2018, 10:01 AM
Hi Sascha,

If you need to localize your reports, we use the mechanism described in the Localizing Reports help article. The article elaborates how to localize reports with RESX files through the Visual Studio Report Designer or create a user function in addition to localizing the XML based documents in Standalone Report Designer.

Another approach is to have the localized text in the data source. To display the text based on the user culture, you can use expressions that contain report parameters or user functions. We have available sample of this approach, which can be seen in our online demos. Please check the multilingual Product Catalog Report demo. The report definition can be found in your default installation path of Telerik Reporting, for example C:\Program Files (x86)\Progress\Telerik Reporting <VERSION>\Report Designer\Examples\Product Catalog.trdp.

Regards,
Silviya
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Sascha
Top achievements
Rank 1
answered on 26 Jun 2018, 02:10 PM

Many thanksk for the response. I knew about these articles and methods. But what I wanted is to change the Culture inside the thread by myself. What is possible running inside an .exe but not inside a Windows Service. Now I have moved my renderer to a Scheduled Task in Windows and it works. So whoever runs into the same problem.. Inside a Windows Service the culture can't be changed!

Best regards,

Sascha

Tags
General Discussions
Asked by
Sascha
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Sascha
Top achievements
Rank 1
Share this question
or