Open the right page in the chm from VB.Net

Word-2-CHM Converter

Open the right page in the chm from VB.Net


floriankarch 12-16-2009, 9:00 AM
In the Help.ShowHelp function, if i want to go to a specific bookmark created in the word document, what's the manner ?

I succeed with Help.ShowHelp(Me, "mychm.chm",KeywordIndex,"MyString") but i would prefer to search with hidden bookmarks in the word document (= name of the vb screen) rather than a specific string.

Thanks.

Re: Open the right page in the chm from VB.Net


Peter 12-17-2009, 3:05 AM
Solution 1: Using topic filename:
Help.ShowHelp(Me, "Word2CHM 2008.chm", HelpNavigator.Topic, "LaunchingWord2CHM.htm#ScreenShot2")

Solution 2: Using Help Id:
Help.ShowHelp(Me, "Word2CHM 2008.chm", HelpNavigator.TopicId, "1186")

See also:
http://www.macrobject.com/en/word-2-chm/doc2008/topics/UsinContSensHelpInYourProg.htm
http://www.macrobject.com/en/word-2-chm/doc2008/topics/HowToScroToSpecPlacInSpecTopiInM.htm

Re: Open the right page in the chm from VB.Net


floriankarch 12-17-2009, 5:51 AM
What's the "LaunchingWord2CHM.htm" file ?

With solution 2, i have "HH_HELP_CONTEXT called without a [MAP] section" error message when launching the Help.ShowHelp. I have put the helpid.ini file in the same directory of chm file.

Re: Open the right page in the chm from VB.Net


Peter 12-17-2009, 6:41 AM
LaunchingWord2CHM.htm is the topic which contains bookmark ScreenShot2. This is an example only. Please replace it with your topic file and bookmark name.

The "HH_HELP_CONTEXT called without a [MAP] section" error: Select something other than "None" in the "Auto Help Id" drop-down list to solve it.
The .helpid.ini is used by Word-2-CHM itself only.

Re: Open the right page in the chm from VB.Net


floriankarch 12-17-2009, 6:50 AM
I don't have topic file, just a chm !?
I have put "VB.NET.vb" in the drop-down ...

Re: Open the right page in the chm from VB.Net


Peter 12-18-2009, 7:39 AM
Please see online help for how to get the topic file name:
http://www.macrobject.com/en/word-2-chm/doc2008/topics/UsingCommandLine2.htm

Powered by Community Server, by Telligent Systems