Hi Alex,
Alex Gurevich wrote:For HTML help file I have found the following expression:
That is for WebHelp (browser-based HTML). "HTML Help" is Microsoft's official and unfortunately confusing name for the CHM format.
When you link to a topic in another CHM file, the other file MUST be in the same folder as the CHM file containing the link. There are two ways to link to a topic in another CHM. Which one you use depends on whether you want the topic to be displayed inside the current help viewer or in a separate window in a new help viewer.
Display in the current help viewer
For this to work, the Help & Manual project with which you create the CHM file must have
exactly the same name as the CHM file -- if you link via the project. For example, if the CHM file is called
index.chm, then the project must be called
index.hmxz or
index.hmxp. Also, no spaces are allowed in the project or CHM file name. If the names are not the same, the link cannot know what the name of the CHM file is going to be. Alternatively, you can link directly to the CHM file, but you must have the CHM file available to be able to do that.
- Open the link tool to create a normal topic link and select the Help & Manual project of the other CHM file in the Help FIle: field at the bottom. Alternatively, select the CHM file in that field. The topic IDs will then be displayed.
- Select the correct target ID you want to link to and create the link.
- Make sure that both CHM files are in the same folder when the user views them.
Display in a new help viewer:
Here too, no spaces or other special characters are permitted in the CHM file names. Also, the CHM file containing the link and the CHM file you are linking to must both be in the same folder.
- Open the Link tool and instead of creating a topic link, select the File Link option.
- In the File name: field enter the program name of the help viewer:
hh.exe
- In the Execution parameters: field enter the name of the CHM file and topic, using the following exact syntax:
ms-its:helpfile.chm::/topicname.htm#anchor
helpfile.chm is the name of the target CHM file. topicname.htm is the Topic ID of the target topic in all lower case characters plus the extension ".htm". anchor is an optional anchor ID you want to jump to on the page, also in all lower case.
- Make sure that both CHM files are in the same folder when the user views them.