- Home
- Forum
- ASP.NET Web Forms
- Mail Merge and Numberformatting
Mail Merge and Numberformatting
{ MERGEFIELD FieldName \# "#.00" }
{ MERGEFIELD FieldName \# "#,00" }
{ MERGEFIELD FieldName \# "#,###.00%" }
{ MERGEFIELD FieldName \# "#.###,00%" }
I have found out, that if I make a formula, as {=({ MERGEFIELD FieldName} + 0) \# "0,000.00" } then I can get it formatted - in English format only. Everything is set to Danish, environment, global culture etc.
I appreciate any feedback.
//Nicky
Thank you for your interest in Syncfusion products.
Kindly specify the number format in merge field and the input string in English culture format and then change the System’s culture to the desired one (Danish) in sample level then perform the mail merge to retain the desired number format. We have prepared a sample to illustrate the same. Please find the sample from below link:
Sample link:
http://www.syncfusion.com/downloads/support/directtrac/118247/Sample724512912.zip
If this doesn’t resolve your issue, then kindly update us your input template document, code snippet or sample used in your side along with the expected output number format. Thereby we will analyse further on the mentioned issue and provide you appropriate solution.
Regarding issue with Formula field:
Kindly update us your test case document along with the code snippet or sample to reproduce the issue. It will help us to analyse further on the mentioned issue.
Please let us know if you have any other questions.
Regards,
Sathish
1000.35
1,000.46%
Which is correct. Both lines has two decimals, and the bottom line has a thousandseparator.
Now do:
- Change back to Danish culture on line 58: System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("da-DK")
- Run the sample
The output is now:
1000,35
1000,46350%
First line is fine, but the second line is missing a thousandseparator ( . ) and has too many decimals.
//Nicky
Hi Nicky,
We were able to reproduce the reported issue with number formatting and we have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Please let me know if you have any questions.
Best,
Sathish
- 3 Replies
- 2 Participants
-
NM Nicky Mogensen
- Feb 16, 2015 11:18 AM UTC
- Feb 19, 2015 12:24 PM UTC