开发者

How to cancel an Outlook.MailItem changes?

开发者 https://www.devze.com 2023-03-19 04:18 出处:网络
I am doing changes on an Outlook.MailItem but after closing the last explorer a message box asks to save the item (twice!).

I am doing changes on an Outlook.MailItem but after closing the last explorer a message box asks to save the item (twice!).

I want to cancel the "dirty" state of the item without saving it so 开发者_C百科no message box will be displayed.

Is it possible to accomplish it? The only solution that I have is persisting the previous state and saving it again.


You need to release COM objects, created in your code. See When to release COM objects in Office add-ins developed in .NET.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号