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

Free Support Forum - aspose.com

Conditional actions for each row of merge data

I want to do certain conditional actions based on a row of data (item) at merge time. For example, if the country is not in the USA, delete a section. Or if the state is Texas, insert a section. I see plenty of advice for using IF fields but they don’t work that well for my use case. I can use the IFieldMergingCallback to do this if I have a single merge item but that doesn’t seem to work if I have multiple items to merge. Is there a strategy I can use other than IF fields?

@joel.reinford Could you please provide your sample template, data and the expected output? We will check your requirements and provide you more information.

If MS Word standard IF field conditions does not fit your requirements, you can consider using LINQ Reporting Engine, which provide more advanced syntax for condition blocks.