Free Support Forum - aspose.com

Percentage Rate Behavior Changes?

Hi,

When we are upgrading from 2.4.x to 13.2.0, we found a testcase failure. And it can be simply reproduced with below scenario:
1. Create a word template with only mergefield <> {MERGEFIELD Data ###%}
2. execute(new String[]{“Data”}, new Object[]{0.25f})
The merged document displays 25% in Aspose.Word 2.4.x but displays 0% in Aspose.Word 13.2.0

3. change the format to #.##%
The merged document displays 25.0% in 2.4.x but displays .25% (dot before) in 13.2.0

Need a confirmation that if it is a designed/planned change of Aspose.Word?
And because our customers are using such formats to format rate data, could you provide a workaround that can help us performs as before?(don’t want to impact customers, and the template are written by customer, so need code-level fix)

Pls help.

Hi,

When we are upgrading from 2.4.x to 13.2.0, we found a testcase failure. And it can be simply reproduced with below scenario:
1. Create a word template with only mergefield <> {MERGEFIELD Data ###%}
2. execute(new String[]{“Data”}, new Object[]{0.25f})
The merged document displays 25% in Aspose.Word 2.4.x but displays 0% in Aspose.Word 13.2.0

3. change the format to #.##%
The merged document displays 25.0% in 2.4.x but displays .25% (dot before) in 13.2.0

Need a confirmation that if it is a designed/planned change of Aspose.Word?
And because our customers are using such formats to format rate data, could you provide a workaround that can help us performs as before?(don’t want to impact customers, and the template are written by customer, so need code-level fix)

Pls help.
Hi Guilin,

Thanks for your inquiry. I have already answered your query here in this post. Please follow that thread for further proceedings.