Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VSTO - Appointment Item

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

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
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 …
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…

618 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