?
Solved

VSTO - Appointment Item

Posted on 2014-03-20
1
Medium Priority
?
523 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

762 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