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

Free Support Forum - aspose.com

The merge fields in IF field are merged incorrectly

I used Aspose.Words for Java 13.7.

I have a field {IF {MERGEFIELD A}=“A” {MERGEFIELD B} {MERGEFIELD C}}.

1. When the value of {MERGEFIELD A} is A, the merge result is {IF A=“A” {MERGEFIELD B} valueC}.

2. When the value of {MERGEFIELD A} is D, the merge result is {IF D=“A” {MERGEFIELD B} valueC}.

So you can see in case 1, the {MERGEFIELD B} is not merged which should be.

BTW, this kind of IF field would work well if it’s in a table (between TableStart and TableEnd).

Please help me on this issue. Attached the test template and result. Thanks!

Hi Zheng,

Thanks for your inquiry. I would suggest you please upgrade to the latest version (v14.7.0) from here:
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/entry564843.aspx

The latest version of Aspose.Words for Java 14.7.0 will fulfill your requirement. Please let us know if you have any more queries.