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

Free Support Forum - aspose.com

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

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

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:

http://www.aspose.com/community/files/51/file-format-components/aspose.words-for-.net-and-java/category1188.aspx

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

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

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,