Discussion:
sync toc from merged chm
(too old to reply)
km
2009-07-14 21:46:01 UTC
Permalink
Hello,

I've got a master.chm and child chm's merged into the master.
When I open up the master from a C# app, and jump to a topic in the merged
chm the toc does not synchronize. Syncing works for topics in the master.

If I manually open master.chm then syncing works.
Any ideas?

Thx
Rob Chandler [MVP]
2009-07-15 03:04:49 UTC
Permalink
Hi km
This is a known problem... how to cleanly link to slave topics from your
application.

First off take the usual precautions and make sure your projects have the
same
Window Definintions .. and all defs are are prefixed with $GLOBAL_.
http://helpware.net/htmlhelp/how_to_merge.htm

Also when you open a CHM make sure your application does a
ChangeDir(helpDir) first so the CHM can find its slaves info correctly.
You can change the current dir back if you want immediately after the
HTMLHelp() call.

To address the problem at hand I've posted this page
http://helpware.net/htmlhelp/how_to_merge_ctx2.htm

Get back to me if you have questions
Rob

Rob Chandler
MS Help MVP
http://helpware.bnet/FAR/
Post by km
Hello,
I've got a master.chm and child chm's merged into the master.
When I open up the master from a C# app, and jump to a topic in the merged
chm the toc does not synchronize. Syncing works for topics in the master.
If I manually open master.chm then syncing works.
Any ideas?
Thx
Rob Cavicchio
2009-07-18 20:43:40 UTC
Permalink
I would also try to ensure that there are no duplicate HTML topic file names
across the merged CHMs. TOC synchronization goes crazy when you have, say,
two "index.htm" files.
Post by Rob Chandler [MVP]
Hi km
This is a known problem... how to cleanly link to slave topics from your
application.
First off take the usual precautions and make sure your projects have the
same
Window Definintions .. and all defs are are prefixed with $GLOBAL_.
http://helpware.net/htmlhelp/how_to_merge.htm
Also when you open a CHM make sure your application does a
ChangeDir(helpDir) first so the CHM can find its slaves info correctly.
You can change the current dir back if you want immediately after the
HTMLHelp() call.
To address the problem at hand I've posted this page
http://helpware.net/htmlhelp/how_to_merge_ctx2.htm
Get back to me if you have questions
Rob
Rob Chandler
MS Help MVP
http://helpware.bnet/FAR/
Post by km
Hello,
I've got a master.chm and child chm's merged into the master.
When I open up the master from a C# app, and jump to a topic in the merged
chm the toc does not synchronize. Syncing works for topics in the master.
If I manually open master.chm then syncing works.
Any ideas?
Thx
Loading...