String numbers incorrectly formatted in document

Hi

I have some decimals that I programatically convert to strings before merging them. But that string representation is not retained when the value is below 1000. I convert the decimals using .ToString(“N2”) before merging.

For decimal 1128, the resulting field in the doc is given as 1.128,00.
For decimal 956, the resulting field in the doc is given as 956,00000.

See attached file with screenshots of the resulting document and the template fields.

sincerely
Henrik Nielsen

Hi

Thanks for your inquiry. It seems, this problem is already resolved in the latest version of Aspose.Words (8.0.0). You can download this version from here:
https://releases.aspose.com/words/net
Please try and let me know how it goes on your side.
Best regards,

Hi

The attached screenshots were, in fact, from a run using 8.0. The results are the same for 7.0 and 8.0

regards
Henrik Nielsen

Hi

Thank you for additional information. Could you please attach your template document and simple code here for testing? I will check the issue on my side and provide you more information.
Best regards,