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

Free Support Forum - aspose.com

Specify culture before mailmerge

Hello,

I would like to know if you plan on adding the option to specify the culture before mailmerge.
The problem we face is that numeric mergefield values are parsed according to the local culture. What we would like to do is specify the culture on a per document basis.

Regards

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Maybe in your case you can use code like the following:

// Change culture of the currnt thread.

CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;

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

// Hare is mail merge staff.

// Change culture back.

Thread.CurrentThread.CurrentCulture = currentCulture;

Hope this helps.

Best regards.

Hello,

Thank you for your answer. This did the trick.

Regards,