User (Legacy) Posted October 11, 2002 Report Posted October 11, 2002 Is it possible to adjust the date and numeric representation of a chart by setting the culture property ? Our assemblies are currently culture aware, but can't get 1,234,567.89 to be represented as 1.234.567,89 on the chart based on a culture selected by the user. I tried the following, but no joy. I looked at the Chart FX .Net Localization.zip file, but it did not contain provision to adjust date and numeric representations. System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("de-DE"); Chart1.Culture = System.Threading.Thread.CurrentThread.CurrentCulture ; Thanks in Advance, Dec.
User (Legacy) Posted October 11, 2002 Author Report Posted October 11, 2002 I used these two: CultureInfo customCultureInfo = new CultureInfo(Thread.CurrentThread.CurrentUICulture.LCID); NumberFormatInfo numberFormatInfo = new NumberFormatInfo(); and set the appropriate properties with success. "Declan O'Leary" <declanol@hotmail.com> wrote in message news:#XCKAgUcCHA.2308@webserver1.softwarefx.com... > > Is it possible to adjust the date and numeric representation of a chart by > setting the culture property ? Our assemblies are currently culture aware, > but can't get 1,234,567.89 to be represented as 1.234.567,89 on the chart > based on a culture selected by the user. > > I tried the following, but no joy. I looked at the Chart FX .Net > Localization.zip file, but it did not contain provision to adjust date and > numeric representations. > > System.Threading.Thread.CurrentThread.CurrentCulture = new > System.Globalization.CultureInfo("de-DE"); > Chart1.Culture = System.Threading.Thread.CurrentThread.CurrentCulture ; > > Thanks in Advance, > > Dec. > > >
User (Legacy) Posted October 14, 2002 Author Report Posted October 14, 2002 Thanks Bill. Culture appear to be ok if used in a chart image, but not if used in the chart object (Auto or .Net). I've posted a new message regarding these queries. Dec. "Bill Large" <largewi@wi.rr.com> wrote in message news:PZLpQHVcCHA.2308@webserver1.softwarefx.com... > I used these two: > > CultureInfo customCultureInfo = new > CultureInfo(Thread.CurrentThread.CurrentUICulture.LCID); > > NumberFormatInfo numberFormatInfo = new NumberFormatInfo(); > > > > and set the appropriate properties with success. > > > > > > > > > > "Declan O'Leary" <declanol@hotmail.com> wrote in message > news:#XCKAgUcCHA.2308@webserver1.softwarefx.com... > > > > Is it possible to adjust the date and numeric representation of a chart by > > setting the culture property ? Our assemblies are currently culture > aware, > > but can't get 1,234,567.89 to be represented as 1.234.567,89 on the chart > > based on a culture selected by the user. > > > > I tried the following, but no joy. I looked at the Chart FX .Net > > Localization.zip file, but it did not contain provision to adjust date and > > numeric representations. > > > > System.Threading.Thread.CurrentThread.CurrentCulture = new > > System.Globalization.CultureInfo("de-DE"); > > Chart1.Culture = System.Threading.Thread.CurrentThread.CurrentCulture ; > > > > Thanks in Advance, > > > > Dec. > > > > > > > >
Software FX Posted October 14, 2002 Report Posted October 14, 2002 This is a BUG, the Culture information is not being transmitted to the Client component. This will be fixed in the next SP. -- FP Software FX, Inc.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.