I'm using ReportViewer in my WinForms .NET 4.0 application and I would like to display some dates in some chart axis labels. My application will be used in different countries, so I would like to display dates in the default OS culture short format.
My whole application culture is italian at the moment (same as the OS default), but when the report renders, it shows dates in the english short format (M/d/yyyy, italian is dd/MM/yyyy).
I tryed to use a string property in my binding objects to calculate date strings at render time, but if I put a breakpoint in this property I notice that the property System.Threading.Thread.CurrentThread.CurrentCulture
returns english culture during rendering, not italian culture as in the main application thread.
Is there any way to tell ReportViewer to use the main application thread culture? Is it a ReportViewer bug or am I doing something wrong? Someone is having the same problem?
Thanks in advance