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

Free Support Forum - aspose.com

Aspose.Words for .Net Question

Hi, in the latest version of Aspose, is there some way to include some decision logic in the templates without it being so complicated that a business user cant do it?

Hi there,


Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word does. Yes, you can insert decision logic in the template document in the form of IF field.

Could you please share some more detail about your use case? We will then provide you more information about your query.

Do you have an example of an if statement in a template that would add a paragraph IF a data filed = a certain value?

Thanks!

Hi there,


Thanks for your inquiry. Please read about field codes of IF field from following link.
Field codes: IF field

We have attached a sample document with this post for your kind reference. Hope this helps you.

Is this what was supposed to be in the document you attached? Thanks!

Hi there,


Thanks for your inquiry.

Please open the document in MS Word and press Alt+F9 to toggle display of field codes on or off. See the attached image for detail.