Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic XmlWriter CultureInfo DecimalSeparator (Read 3677 times)
meriturva
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 27th, 2007
XmlWriter CultureInfo DecimalSeparator
Jun 26th, 2007 at 2:23pm
Print Post  
I have some pc with different languages and culture information....specially the decimal separator.

I would like to have the XmlWriter of the FlowCHart configurable about the decimal separator.
Without this control some pc views the diagram correctly others with so big table and fontsize.

I found that the set of Thread.CurrentThread.CurrentCulture doesn't affect the mindfusion xmlwriter.

I can change the decimal separator only setting into the Control Panel - > Regional Configuration-> English and the separator . or , and it works. If i set other languages i got only . (dot) decimal separator into the xml file.

How could i control the decimal separator into the MindFusion.Diagramming.Xml.XmlWriter?

Thanks
Meriturva
My FlowChart.Net Professional version is 4.3.1.18498
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: XmlWriter CultureInfo DecimalSeparator
Reply #1 - Jun 27th, 2007 at 4:52am
Print Post  
The XmlWriter class is designed to be culture-independent and it should not be affected by the current regional settings. I am testing here with different cultures and the produced XML files are always identical. What cultures do you test with? Any chance you can send me a saved XML file with comas (,) used as separators?

Thank you,
Meppy
  
Back to top
 
IP Logged
 
meriturva
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 27th, 2007
Re: XmlWriter CultureInfo DecimalSeparator
Reply #2 - Jun 28th, 2007 at 5:01am
Print Post  
I have sent you an e-mail with two example, one with dot and one with coma.
They are two files empty but there are some general settings saved.

Note for example the Enviroment->Apparence one time is
<CrossingRadius>1,5</CrossingRadius>

in the other with the regional decima separator set to "." (dot) is
<CrossingRadius>1.5</CrossingRadius>

I have found that the problem is on only with English (UnitedStates) regional, with other languages it seems to be real culture indipendent.

I tested the normal XmlWriter from the framework with simple example and this is culture indipendend.
I think that the problem is that in mindfusion xmlwriter there are some double.ToString() that it is culture dependent.

Thanks
Meriturva
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: XmlWriter CultureInfo DecimalSeparator
Reply #3 - Jun 28th, 2007 at 6:56am
Print Post  
There was indeed a flaw in our XmlWriter, which is now supposed to be fixed in this prerelease build:

https://mindfusion.org/_431/_FlowChart.NET_trial431.zip

Let me know if it works.

Meppy
  
Back to top
 
IP Logged
 
meriturva
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 27th, 2007
Re: XmlWriter CultureInfo DecimalSeparator
Reply #4 - Jun 28th, 2007 at 8:21am
Print Post  
I have the professional edition not the trial,
do i have to get the trial file you put here? and replace the ddls?
I don't want to get messed with license and so on

Meriturva
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: XmlWriter CultureInfo DecimalSeparator
Reply #5 - Jun 28th, 2007 at 9:39am
Print Post  
The version I have posted above is a trial of the professional FlowChart.NET for .NET Framework 1.1. If you have purchased a licensed copy of the control, can you please e-mail us your order ID and we will send you the updated licensed version back through e-mail?

Thanks,
Meppy
  
Back to top
 
IP Logged
 
meriturva
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 27th, 2007
Re: XmlWriter CultureInfo DecimalSeparator
Reply #6 - Jun 29th, 2007 at 5:27am
Print Post  
We have sent you an email with all information!

Thanks.
Meriturva
  
Back to top
 
IP Logged
 
meriturva
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 27th, 2007
Re: XmlWriter CultureInfo DecimalSeparator
Reply #7 - Jul 11th, 2007 at 12:52pm
Print Post  
seems to be fixed!
Thanks again!

Meriturva
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint