Solved

VSTO - Appointment Item

Posted on 2014-03-20
1
494 Views
Last Modified: 2014-03-21
Hi All,

I have an VSTO add in that I'm working on.  Inside of my form, I'd like to have a button that does some fucntions, and then brings me back to the appointment page.

(EG: simulate the appointment click in the show ribbon).

I've found the document that says the control name is ShowAppointmentPage . . . but haven't found a way to access it yet.

If anyone knows how to do this with an inspector or by getting to it from the ribbon it would be very helpful.

Thanks in advance.
0
Comment
Question by:Kyle Abrahams
1 Comment
 
LVL 39

Accepted Solution

by:
Kyle Abrahams earned 0 total points
Comment Utility
I found my own answer but leaving it here in case anyone else needs to come across:

Globals.ThisAddIn.Application.ActiveInspector().SetCurrentFormPage("Appointment");

In general you can add a PageChange event to your outlook inspector:
            Outlook.Inspector y = Globals.ThisAddIn.Application.ActiveInspector();
            y.PageChange += new Outlook.InspectorEvents_10_PageChangeEventHandler(y_PageChange);

and then set a break point on the line in this function:
        void y_PageChange(ref string ActivePageName)
        {
            string test = ActivePageName;
        }

test will now hold the pagename of what you just clicked, so you can go back to it using:
Globals.ThisAddIn.Application.ActiveInspector().SetCurrentFormPage(test);
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Get an idea of what you should include in an email disclaimer with these Top 5 email disclaimer tips.
Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now