We have a need to force encryption of fields in a NotesUIDocument on close, whether or not any changes have been made to the document.
The scenerio is:
Before the document is opened, if we look at the document properties from the view, the encrypted fields in the document are in fact encrypted and not visible from document properties. However, once the document is opened, and you right click to look at document properties from within the document, the encrypted fields are visable in clear text. When you close or close w/o save and again look at document properties from the view, the encrypted fields are still visible in clear text. A ToolsRefreshSelectedDocs will again encrypt the fields, but that has to be done manually. There has to be a way of doing this programmatically.
I’ve tried source.Refresh, doc.Encrypt, but neither seems to work. We always get the Notes Error: “Cannot encrypt NotesDocument when instantiated by a NotesUIDocument.”.
Is there a way to force the NotesUIDocument to be encrypted on close?