Unable to Change Culture (WindowsService)

3 posts, 1 answers
  1. Sascha
    Sascha avatar
    2 posts
    Member since:
    Jun 2016

    Posted 21 Jun 2018 Link to this post

    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. Answer
    Silviya
    Admin
    Silviya avatar
    414 posts

    Posted 26 Jun 2018 Link to this post

    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
  3. Sascha
    Sascha avatar
    2 posts
    Member since:
    Jun 2016

    Posted 26 Jun 2018 Link to this post

    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

Back to Top