You might be able to do this using an OCR engine to recognize a pre-defined image that contains dummy text. After the recognition process, you can modify the recognized text and replace it with your custom text, and then save the result to Word Document Format.
Leadtools is one of the programming toolkits that I used and supports this feature.
About making the result document read-only, you might be able to do this by using the System.IO.File.SetAttributes method after creating the document. You can find more details here:
Megan FosterPosted Feb 4, 2015, 6:04 AM
I used a Word DLL for .NET framework, I found it has somewhat intinutive interface so you can easily create your Word documents with C#.
Also you have a direct method for exporting those Word documents in ASP.NET application.
shi lianghongPosted Jan 8, 2015, 3:06 AM
http://c.ittoolbox.com/groups/technical-functional/csharp-l/how-to-make-read-only-word-doc-or-pdf-form-using-c-3136532
Ismail YigitPosted Dec 23, 2014, 11:48 AM