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

Problems with Report Culture

1 Answer 333 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Iron
Alexander asked on 13 Jun 2016, 02:21 PM

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".

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 14 Jun 2016, 03:02 PM
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
Tags
General Discussions
Asked by
Alexander
Top achievements
Rank 1
Iron
Answers by
Stef
Telerik team
Share this question
or