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

Free Support Forum - aspose.com

Multiple Culture Support

is it possible to support multiple culture in same template Merge (.Net)? For example I want to merge data in a document with have German and English instructions both and one challenge is with currency field formats.

{MERGEFIELD price #"###.##0,00}
vs german format
{MERGEFIELD price #"###,##0.00}

Either one of them applies based on the culture of the executing thread.



Thanks for your inquiry. In your case, we suggest you please use the FieldOptions.FieldUpdateCultureSource property as shown below. This property specifies what culture to use to format the field result.

The culture specified in the field formatting properties via language setting is used when this property has value FieldUpdateCultureSource.FieldCode. Hope this helps you.

doc.FieldOptions.FieldUpdateCultureSource = FieldUpdateCultureSource.FieldCode;
doc.MailMerge.Execute(new string[] { "price" }, new object[] { "1232424" });