Subdocuments in Words functionality

Hello,

We had a request of Word documents that contain subdocuments that are not expanded. I looked at the documentation provided in the area of SubDocument ( both in your code documentation and code samples ) and could not find anything relevant.

Is there a way on including/expanding the content of a subdocument from Aspose.Words?

@HIGHSTAGE

Thanks for your inquiry. Unfortunately, your question isn’t clear enough therefore we request you to please elaborate your inquiry further. Also, please supply input/output documents and your current code for testing. This will help us to understand your scenario, and we will be in a better position to address your concerns accordingly.

@tahir.manzoor
Of course. I have attached the sample files, as well as some screenshots relevant for the respective Office functionality desired.
The basic use case can be resumed as it follows:

  • the end-user inserts the subdocument.docx in the main_document
  • the main document is then saved and processed by Aspose.Words
  • in order to produce an pdf file of the main_document, the subdocuments included require to be expanded, or their content to be included in the main_document

At the moment, from what we could research, this functionality is not present in Aspose.Words. Have we missed some documentation and if not, is this a feature to be considered in the future releases?
example.zip (50.6 KB)

@HIGHSTAGE

Thanks for sharing the detail. Unfortunately, Aspose.Words does not support the creation of master and sub-document feature at the moment. However, we logged this feature request as WORDSNET-14111 in our issue tracking system. You will be notified via this forum thread once this feature is available. We apologize for your inconvenience.

We suggest you please insert the sub-document into main document using Document.AppendDocument method. Please refer to the following article.
Joining and Appending Documents