How to hide a section or table based on condition in docx using aspose.words

Hi,


Can you please help here?

I have a requirement to hide a section or table based on specific condition in docx using aspose.words API.

Say for example, I have section1 and section2. I have to show section1 only if a condition is true else show section2.

Same way, I have tables in docx. I want to show tables based on condition.

Please let me know.

Thanks,
Siva.

I was able to do this with {IF} condition itself. I kept the table itself inside the IF condition based on which it was displaying or hiding.


Thanks,
Siva.

Hi Siva,

Thanks for your inquiry. It is nice to hear from you that you have found the solution of your query. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.