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

Free Support Forum - aspose.com

Insert a Document

HI Team,
How to Insert a Document without using bookmark


We suggest you please read the following article about inserting document into another document.

If this does not help you, please share some detail about your requirement along with input and expected output documents. We will then provide you more information about your query.

Hi Team,
We are replacing Microsoft interop with Aspose.word . Here we have one scenario i.e. Inserting document data into a predefined template .
By using Interop we can add the document to the template without any customization.
below is the Interop code snippet

Word._Document Word_Document = Word_Application.Documents.Add(ref DefaultTemplate);
Word.Selection Word_Selection = Word_Application.Selection;

How we can achieve the same scenario in Aspose.word without using any existing template customization ?

sample_template.png (6.2 KB)



Aspose.Words provides virtual cursor, with which you can move to another location in the document. Please move cursor to the desired location of document and insert the document using DocumentBuilder.InsertDocument method. We suggest you please read the following articles.
Aspose.Words Document Object Model (DOM)
Document Navigation
Navigation with Cursor