In Excel, at least, it might be worth trying to call Application.Help instead.
Help.ShowHelp not working in Office 2019, Office 2007 OK

陈国辉
1
Reputation point
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.
2 answers
Sort by: Most helpful
-
-
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