Hello, I would like to create a library which uses ASPOSE Word for .NET 22.214.171.124.
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.
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-us");
seems to work but I wonder if it is the proper way.
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.