How to get locale-independent page id in Outlook VSTO?

Dmitry Kosovets 1 Reputation point
2020-10-01T11:52:35.593+00:00

I get trouble with localization of Outlook VSTO on C#. It has PageChange event:

AppointmentItem item = Inspector.CurrentItem as AppointmentItem;
if (item != null)
{
    Inspector.PageChange += pageChange;
}

But the PageChange has localized page name as an argument:

private void pageChange(ref string ActivePageName)
{
    ThisRibbonCollection ribbonCollection =
    Globals.Ribbons
        [Globals.ThisAddIn.Application.ActiveInspector()];
    if (schedulingNames.Contains(ActivePageName))
        ribbonCollection.RibbonRooms.buttonRooms.Visible = true;
    else
        ribbonCollection.RibbonRooms.buttonRooms.Visible = false;
}

I need the list of all localized page names of Scheduling Assistant. I want to be locale-independent and I wonder if there is a map of standard id of page Scheduling Assistant to localized page name. I cannot find it in the MS docs and in Google. Thanks in advance.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,029 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 25,166 Reputation points Microsoft Vendor
    2020-10-02T02:56:01.1+00:00

    Hello Dmitry,

    Thank you for taking time to post this issue in Microsoft Q&A forum. VSTO is currently not supported in the Microsoft Q&A forums, the supported products are listed over here: https://learn.microsoft.com/en-us/answers/products/ (more to be added later on).

    For the related questions about VSTO, you can post here: Visual Studio Tools for Office (VSTO).

    Thanks for your understanding.

    Sincerely,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments