Make a Word document read-only when opend in a TOleContainer (Views: 27)
Problem/Question/Abstract: How to make a Word document read-only when opend in a TOleContainer Answer: You could use the document's Protect method, e.g.: { ... } OleContainer1.DoVerb(ovShow); OleContainer1.OleObject.Protect(wdAllowOnlyComments, EmptyParam, EmptyParam); { ... } |