File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed
Source/ExcelDna.IntelliSense Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -361,13 +361,25 @@ void ToolTipForm_MouseClick(object sender, MouseEventArgs e)
361361
362362 void LaunchLink ( string address )
363363 {
364- // Check :
365- // http://stackoverflow.com/questions/11076952/open-chm-file-at-specific-page-topic-using-command-line-arguments
366- // http://stackoverflow.com/questions/27556808/excel-2010-help-on-this-function-does-not-launch-hh-exe-with-mapid-parameter/27571805#27571805
367- // http://www.help-info.de/en/Help_Info_HTMLHelp/hh_command.htm
368- // https://support.microsoft.com/en-us/kb/224816
369-
370- Process . Start ( address ) ;
364+ if ( address . StartsWith ( "http" , StringComparison . OrdinalIgnoreCase ) )
365+ {
366+ Process . Start ( address ) ;
367+ }
368+ else
369+ {
370+ var parts = address . Split ( '!' ) ;
371+ if ( parts . Length == 2 )
372+ {
373+ // (This is the expected case)
374+ // Assume we have a filename!topicid
375+ Help . ShowHelp ( null , parts [ 0 ] , HelpNavigator . TopicId , parts [ 1 ] ) ;
376+ }
377+ else
378+ {
379+ // Just show the file ...?
380+ Help . ShowHelp ( null , address ) ;
381+ }
382+ }
371383 }
372384 }
373385}
You can’t perform that action at this time.
0 commit comments