Ismail Yigit2 pointsPosted Dec 23, 2014, 6:48 AM EST
0
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:
Ismail Yigit2 pointsPosted Dec 23, 2014, 6:48 AM EST
shi lianghong48 pointsPosted Jan 7, 2015, 10:06 PM EST
http://c.ittoolbox.com/groups/technical-functional/csharp-l/how-to-make-read-only-word-doc-or-pdf-form-using-c-3136532
Megan Foster18 pointsPosted Feb 4, 2015, 1:04 AM EST
// Create new document. var document = new DocumentModel(); // Add document content. document.Sections.Add( new Section(document, new Paragraph(document, "Sample content")); // Set document as read-only. document.Protection.StartEnforcingProtection(EditingRestrictionType.NoChanges, null); // Send (download) document to client's browser. document.Save(this.Response, "Sample.docx");Also you have a direct method for exporting those Word documents in ASP.NET application.