Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / VS Tools for Office / April 2008

Tip: Looking for answers? Try searching our database.

VSTO: Access the built-in ribbon

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
henrikwh - 28 Apr 2008 18:20 GMT
Hi
I need to get hold of the control on the AppointmentItem called "Invite
Attendees". I am capable of getting hold of the controls in the menu:
--
AppointmentItem item = (Outlook.AppointmentItem)this.OutlookItem;
MAPIFolder folder =
item.Session.GetDefaultFolder(OlDefaultFolders.olFolderCalendar);
Outlook._Explorer oExp = folder.GetExplorer(false);
CommandBarControl c =
(CommandBarControl)((CommandBar)oExp.CommandBars["Advanced"]).Controls["&Plan
a Meeting..."];
c.Execute();
--
But I need to get hold of the "Invite Attendees" button on the ribbon. Any
help would be appreciated.

/Henrik
Ken Slovak - [MVP - Outlook] - 28 Apr 2008 21:08 GMT
The idMso for that control is logically enough "InviteAttendees".

What do you want to do with that control?

If you want to "click" it call
Inspector.CommandBars.ExecuteMso("InviteAttendees").

You can also find out if it's enabled, the image, label, pressed status,
screentip, supertip and visibility. Look at the Object Browser for
CommandBars and check out everything listed as *Mso, where * is all the
beginnings of the methods.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi
> I need to get hold of the control on the AppointmentItem called "Invite
[quoted text clipped - 13 lines]
>
> /Henrik

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.