I am using a button on a C# Windows Form to dislpay a
specific page in a CHM file created by RoboHelp. This all worked
fine before we started merging CHM files. Now I can only open a
specific HTM file in the parent CHM. If I try to directly access a
page in one of the merged CHM files I get page not found.
Ex: Using the code sample below: DisplayHelpTopic(
"Parent.chm", "PageInParent.htm" ) works fine.
These don't work. I get page not found:
DisplayHelpTopic( "Parent.chm", "PageInChild.htm" )
DisplayHelpTopic( "Parent.chm", "Child.chm::/PageInChild.htm"
)
This works, but my TOC only displays entries in that child
CHM file. I do not get the merged TOC:
DisplayHelpTopic( "Child.chm", "PageInChild.htm" )
I've look at some of the HTML pages (using View Source) that
HTML link from Parent to Child, and the links in the <a
href=""> statements are simply of the format PageInChild.htm.
Also verified that I the link names are correct using this method.
What can I do to link directly to a Child CHM file and still
get the merged Table of Contents? Is it a problem with the way I
reference the nested HTML page, or a problem with the child TOC
itself?
Note that I am on the development side of the fence and the
CHM files are being provided to me by our documentation team. Some
of my RoboHelp terminology may not be accurate.
Thanks in advance for any help.
C# code follows. This is inside of our base Form class.
The HH1Interop wrappers come directly from Microsoft:
http://support.microsoft.com/?kbid=317406