I am intercepting the opening of an attachment with the
mailItem.AttachmentRead event, but no matter what I try to do in the
corresponding function, the attachment is still opened.
What I am trying to accomplish is this:
When the user clicks on the attachment, a dialog which displays the
content of the attachment appears.
The user might edit the text, and the original attachment is replaced
with the new and edited one.
In events like Open, Send and Close, the function takes a boolean
Cancel as a parameter, and all we have to do to abort the operation is
to set this to true. There is no such parameter in the for
AttachmentRead.
Any ideas?
(Using C# in VS2003 for OL2003)


|