Print only part of Word Template using JAVA Aspose API

Hi,
I want to print only a part /some parts of Word template in my java application using a single Word template .Can u suggest me how to design & develop my template ? And how I should use template in my Java application ??

Thanks in advance !!!

Hi
Thanks for your request. it is not quite clear for me what you want to do. But if you want create print only document then it is impossible because MSWord doesn’t have this feature.
Best regards.

On our project we have decided to use Aspose and i am very much new to it.

I want to generate 3 different type of memos using Aspose Java API. Now the issue is some parts of these memos are common and some are different. I want to use a single template for all these memos instead of using 3 different templates.
Somewhere on the forums i read that we can define sections in our template and can dynamically control these sections. But i dont know how to :

  1. Define/Add a section on my template
  2. How to control the visibility of that section.

If anyone has any idea on this then please let me know.

Hi
You can add new section into your template using MS Word menu Insert/Break and then select the section break type. Then you can remove the section using Aspose.Words. For more information see the API reference.
https://reference.aspose.com/words/java/com.aspose.words/Section
https://reference.aspose.com/words/java/com.aspose.words/SectionCollection
Also see the following link.
https://docs.aspose.com/words/net/
Go to “Aspose.Words Programmer’s Guide \ Work with Sections”. There are C# and VB examples in this section, but these are very similar with JAVA.
Best regards.

Thank You …