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

Free Support Forum - aspose.com

How to setup the culture for datetime- money etc with ASPOSE Word .NET version 9.3

Hello, I would like to create a library which uses ASPOSE Word for .NET 9.3.0.0.


I need to set up the culture from one configuration file and then set up aspose to use it when merging my merge fields.

I tried to find it in the API but I can’t as my version is slightly older than the one used in your answers in the forum.

I tried

Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(“en-us”);

seems to work but I wonder if it is the proper way.

Thank you.

Hi Nicolas,


Thanks for your inquiry.

By default Aspose.Words uses the current thread culture to perform parsing and formatting when calculating field values during field update and mail merge. There are also options provided in the form of the FieldOptions class which allows further control over which culture is used during field update. Secondly, you can use the following code in order to change the culture of thread:

CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;

Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");


Please let me know if I can be of any further assistance.

Best regards,