0

I have an outlook 2010 vsto addin and I am able to create new outlook appointments but i now want to edit one (to add recipient or rename the subject, etc). I am struggling to figure out how I can reference an outlook calendar appointment when I bring it up in the Outlook meeting UI.

What is the correct way to get a reference to the current apppointment object when I am in the appointment GUI popup?

1 Answer 1

2

Try Application.ActiveInspector.CurrentItem. Be prepared to handle cases when Application.ActiveInspector is null (no items are open) or when Inspector.CurrentItem is not an appointment.

When is your code invoked? If it is from a ribbon button, the event handler will give you the content - RibbonControl object can be used to read the RibbonControl.Context property, you can then cast it as an Inspector object.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.