Problems with Report Culture

2 posts, 0 answers
  1. Alexander
    Alexander avatar
    22 posts
    Member since:
    May 2016

    Posted 13 Jun Link to this post

    I'm trying to create an english reporot from WPF Application from code behind. Application  Cultutre is set to German.

    I set Reports culture property to the en-US. But report is rendered in german format.

     

    For example TextField with DateTime value  and {0:d}  as the format value.The Textfield is rendered in German Format "13.06.2016" not "06/13/2016".

  2. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 14 Jun Link to this post

    Hello Alexander,

    If reports are localized or use culture sensitive formatting in expressions, it is important to change the current thread's culture before instantiating the report. Reports are processed and rendered based on the thread's culture information - Localization.

    If the issue is related only to expressions using the Format built-in function, replace the expression with the TextBox item's Format property. Thus setting the TextBox.Culture will affect the result beside the current thread's culture - Report Globalization.

    Regards,
    Stef
    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. DevCraft banner
Back to Top