Help.ShowHelp not working in Office 2019, Office 2007 OK

陈国辉 1 Reputation point
2021-03-11T09:37:49.047+00:00

System.Windows.Forms.Help.ShowHelp(null, helpFile, HelpNavigator.TopicId, helpId);

I have to use
ShellExecute(IntPtr.Zero, new StringBuilder("Open"), new StringBuilder(helpFile), null, null, 1);
But can not goto topic Page.

Office 365 is also fail.

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,536 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Govert van Drimmelen 1 Reputation point
    2021-03-22T20:22:24.29+00:00

    In Excel, at least, it might be worth trying to call Application.Help instead.

    0 comments No comments

  2. julia555 6 Reputation points
    2021-03-23T13:58:41.67+00:00

    Thanks, but I hesitate to use Application.Help .

    Every time Help is called from the application, Application.Help opens a new Help window.
    And when user closes the application, he has to close all Help windows manually.

    HtmlHelp () doesn't have these issues.

    Call HtmlHelp(0, ....HelpName, &H12, 0) closes help file automatically