Outlook 2010
We save .msg on the disk and we use COM API’s to start the outlook window.
MailItem mail = (Microsoft.Office.Interop.Outlook.MailItem)oApp.Session.OpenSharedItem(fileName);
We don’t want our users to click “Reply/Reply All” and give them a read-only view of the message. I know there are some listeners that I can use and cancel these events (ItemEvents_10_Event) but that’s not very user friendly.
I would instead like to remove the whole ribbon so that they don’t even see this option.
SendKeys.Send("^{F1}");
Sending control signal just hides it, I want to remove it altogether. (control signals are anyways very unreliable when sent pragmatically.
Any pointers will be really helpful.
-Karephul
I don’t believe that this is possible. It might make more sense to just extract the contents of the message (e.g. using
SubjectandHTMLBodyorBody) and display them in a more appropriate container, such as an IE window.