We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Decimal separator convention used by Aspose.Words

Hello,

I am wondering is there any way to control the decimal separator that is used by Aspose.Words i.e. either ‘,’ or ‘.’? For instance, the Shape object has two properties - height and width, and they are double datatypes. How does Aspose.Words decide whether to use a comma or period for these types, and is it possible to change the separator that it uses?

Thanks

Eric

Hi Eric,

Aspose.Words returns a standard double type, it sounds like to get the format you want you should adjust the .NET settings for locale, which should influence the format of text content. Please use the code below.

System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo ("de-DE");

I believe that setting this culture will result in commas instead of periods as a decimal separator.

Thanks,