|
What you will need to do is to grab the attachment as an embedded object from your document using the NotesDocument class. This is done by using the method Set notesEmbeddedObject = notesDocument.GetAttachment(fileName ) from your NotesDocument.
You will then have the actual attachment stored in the notesEmbeddedObject object. This class contains the methods "ExtractFile" and "Remove." With the first one, you can save the attachment to a specified location, and then once that has been successful, use the remove option to remove the attachment from the document. Don't forget to call the Save method from the NotesDocument class to save the document without the attachment.
|