Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //защита всего документа принудительно
- DocumentProtection.ApplyDocumentProtection(wordDoc,"Q1w2e3r4",DocumentProtectionValues.ReadOnly);
- wordDoc.MainDocumentPart.Document.Save();
- //возможность ввода в поля форм
- DocumentProtection.ApplyDocumentProtection(wordDoc, "Q1w2e3r4", DocumentProtectionValues.Forms);
- wordDoc.MainDocumentPart.Document.Save();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement