Solved

VSTO - Appointment Item

Posted on 2014-03-20
1
520 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 0 total points
ID: 39945748
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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

726 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