Sanat Ojha
Posts: 6
Joined: 2009-11-04
|
Hello Sir,
I want to change the sender mail account while sending the mail in outlook 2003.I didnt find any direct method to do so.
for that here i want to get Account command bar control so that i can execute it to change mail account at runtime.
Outlook._Inspector objInspectr1;
Office.CommandBarControl objCommandBarContrl;
Office.CommandBars objCommndBars;
Office.CommandBarPopup objCommandbarPopup;
Outlook._Inspector objInspectr = this.InspectorObj as Outlook.Inspector;
objCommndBars = objInspectr.CommandBars;
objCommandBarContrl = objCommndBars.FindControlOffice.MsoControlType.msoControlPopup, 31124, "Accou&ts", 1);
but I am not getting the correct value.
So please help me and if there is any direct method for lower versions then please let me know. |
|
Andrei Smolin
Add-in Express team
Posts: 18825
Joined: 2006-05-11
|
Hello Sanat,
objCommandBarContrl = objCommndBars.FindControl(Office.MsoControlType.msoControlPopup, 31124, Type.Missing, Type.Missing);
Andrei Smolin
Add-in Express Team Leader |
|