I would like to insert an external Word document into the document I’m generating.
I have something like this:
// I generate paragraphs in the main document
// Here I want to insert the document. So I create a new paragraph and I call the InsertDocument
// function (described in the Aspose documentation)
Document doc = new Document("Test.doc");
Node insertAfterNode = (Node)builder.InsertParagraph();
// Then I continue generating other paragraphs
The InsertDocument works fine, but the Test.doc document is appended to the end of the main document and not at the position I want.
Can you tell me want I'm doing wrong ?
Do you have an example ?