Jump to content
Software FX Community

Culture question


User (Legacy)

Recommended Posts

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.

Link to comment
Share on other sites

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.

>

>

>

Link to comment
Share on other sites

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.

> >

> >

> >

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...