- Code: Select all
doc.Protect(Spire.Doc.ProtectionType.AllowOnlyFormFields);
and then open it with MS Word 2010 the document is protected but form fields are filled with hidden characters. I have to delete them to have no margin between the text entered in the field and the protected text arround. The same happens when i open the .docx-file and save it to *.doc.