Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have Test.dotx file having one picturebox and 2 text fields in Header section (Header-footer).

When I create Test.DocX from Test.dotx file, i want Header part of file to be locked for editing i.e. user must not be able to write or delete from header section of document(Test.DocX).

I am using word.interop for this purpose. I have given lock to Content Controls in header via.

cc.LockContentControl = true;
cc.LockContents = true;


This disables only controls but other area in header remains Editable. I want to lock whole header section.
Posted
Updated 9-Oct-15 2:46am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900