Im currently playing about with a aspose in Demo Mode which I must say is great, but before I recommend purchasing this tour company I want to be 100% it will do what I need.
currently I have Word document that using VBA code basically does the following…
Search and replace < Tags > within the Document
Finds Bookmarks < bookmarkFilename > and inserts a file into the this bookmark
In VBA, its just a simple couple of lines…
Finds Bookmarks < bookmarkFilename > and inserts a file into the this bookmark*
Please use following code example to achieve your requirements. Hope this helps you.
// Load bat, ini, txt document into Aspose.Words DOM
LoadOptions options = new LoadOptions();
options.LoadFormat = LoadFormat.Text;
Document txtDoc = new Document(MyDir + "in.bat", options);
// Load Word document
Document doc = new Document(MyDir + "in.docx");
DocumentBuilder builder = new DocumentBuilder(doc);
// Move cursor to the bookmark
builder.MoveToBookmark("bookmark");
// Insert .bat, .ini, txt document at the position of bookmark
builder.InsertDocument(txtDoc, ImportFormatMode.KeepSourceFormatting);
doc.Save(MyDir + "Out.docx");