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

Free Support Forum - aspose.com

Append/Insert document with numbered title

Hi,

Using Aspose Words Java…

I am working on a use-case where we need to inject documents into main document. So lets say I have doc1.docx, doc2.docx, doc3.docx and need to inject all these 3 documents into 1 main document. Before inserting/injecting sub-documents need to also add Header/Title for the sub-document content. That title is not part of sub-document, it is coming from Database. With the title/header also need to add numbering. So please tell me the way to add Title and numbering.

I got the way to insert document into main document but not able to add title/header for this inserted document content.

@diwanmail,

To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:

  • Your simplified input Word documents (main and sub-documents)
  • Current, Aspose.Words generated output document showing the undesired behavior
  • Your expected document which shows the correct final output. Please create this document by using Microsoft Word application. We will then provide the code to achieve the same by using Aspose.Words.
  • Please create a standalone Java application (source code without compilation errors) that helps us to reproduce your current output on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your scenario and provide you more information. Thanks for your cooperation.