We are evaluating Aspose.Words, for a simple job of taking an entire document and injecting it instead of a pre-known string in another document.
the Document.Range.Replace() does not provide a decent enough solution as it only accepts strings, thereby ruining the formatting of the injected document content.
Using your examples we’ve been able to concatenate two documents perfectly, but that’s not exactly what we’re after.
There is no need for an example document, we need exactly what is shown on at the bottom of your documentation page named: Inserting a Document During Replace at:
unfortunately we're using an old 8years old version of aspose.words and the IReplacingCallback interface does not exist on it. so trying to do it manually.
using the forums and your blessed documentation, managed to get this done in a way by taking the document, splitting it to two documents at the exact position of the string, then, concatenate all three documents into one document.
Not sure its the most efficient way of doing so, but it seems to be almost flawless.
only one thing, when concatenated it creates three different pages.
Older than one year releases are not available for download and you are using a very old version (8 years old) so we will not be able to test anything with that release.
Also, thousands of new features and fixes have been added since then so we will recommend using the latest version in your case to produce your desired output.