This project has moved and is read-only. For the latest updates, please go here.

Inserting AutoText into a document and deleting bookmarks

Nov 7, 2016 at 10:41 AM
Hi All,

I am working on an automated system that will generate a report (word Document) using C#.

At the moment, I am using a template where I insert the data at each bookmark. I also have an AutoText setup so that I can create a new report within the main report.

I managed to get the bookmark replacement working using Interop. I have found it difficult to implement AutoText insertion in interop. So I thought I could use DocX, however, I haven't found any tutorials on inserting AUtotext or Building Blocks using DocX.

My question is this. Does DocX have a feature where I can insert Autotext?