What do we need?
1. Notepad
2. HTMLHELP Workshop Download from here: (http://www.microsoft.com/downloads/deta ... laylang=en)
3. Flare
First thing we need to do is open the master project:
Make the neccesary modifications you need merge the slaves etc etc and press build. Flare will build your merge project and along with it all the neccesary changes in your TOC.
Now without any modifcation your project will look like this:

A few things that we need to note for now:
1. The indexes are NOt merged
2. the TOC adds an additional layer to the entire TOC (FILENAME)-> Actual TOC so you are adding a new lever of booklets, a lot of people dont want this.
3. If you open your slave you will notice something is wrong you only open your slave chm and dont see the rest, and if you merge the rest you willsee things double.
First we will "fix" the TOC so that we remove this layer of unnecesary booklets.
Go to your Flare project folder open Output->Username->Temporary->TargetName(standard Microsoft HTML HELp)->Content
You will see the following:

the files we need are:
.HHK (INDEX FiLE)
.HHC (TOC FILE)
First we will open the TOC file with notepad unedited it should look like this:
Code: Select all
<li><object type="text/sitemap">
<param name="Name" value="Help opvragen en gebruiken">
</object>
<ul>
<li><object type="text/sitemap">
<param name="Name" value="Inleiding">
<param name="Local" value="html/Inleiding_algemeen.htm">
</object>
<li><object type="text/sitemap">
<param name="Name" value="Help gebruiken">
<param name="Local" value="html/Help_gebruiken.htm">
</object>
</ul>
<li><object type="text/sitemap">
<param name="Name" value="Wat is nieuw vanaf deze versie">
</object>
<ul>
<li><object type="text/sitemap">
<param name="Name" value="Nieuw in Sdu Belasting Office">
<param name="Local" value="html/Nieuw_in_SDU_Belasting_Office.htm">
</object>
<li><object type="text/sitemap">
<param name="Name" value="Wijzingen en aanpassingen">
<param name="Local" value="html/Wijzigingen_en_aanpassingen.htm">
</object>
</ul>
<li><object type="text/sitemap">
<param name="Name" value="RBSREL">
</object>
<object type="text/sitemap">
<param name="Name" value="RBSREL">
<param name="Merge" value="RBRSREL.chm::/_temp.hhc">
</object>
Code: Select all
[b]<li><object type="text/sitemap">
<param name="Name" value="RBSREL">
</object>[/b]
Code: Select all
[i]<object type="text/sitemap">
<param name="Name" value="RBSREL.chm::/_temp.hhc">
<param name="Merge" value="RBRSREL.chm::/_temp.hhc">
</object>[/i]
but now how will be have a slave TOC that also merges the rest without having things popup double? The answer is very simple, you already edited a _temp.hhc that you got from your master TOC make an additional copy of it and name it slave.hhc. now we need to make one more edit for this .HHC file if you have a TOC inside your Master that is directed to its own topic. In my example my master toc has a few topics of its own:
Code: Select all
<ul>
<li><object type="text/sitemap">
<param name="Name" value="Inleiding">
<param name="Local" value="html/Inleiding_algemeen.htm">
</object>
<li><object type="text/sitemap">
<param name="Name" value="Help gebruiken">
<param name="Local" value="html/Help_gebruiken.htm">
</object>
</ul>
The result will look like this:
Code: Select all
<ul>
<li><object type="text/sitemap">
<param name="Name" value="Inleiding">
<param name="Local" value="SBO.chm::/html/Inleiding_algemeen.htm">
</object>
<li><object type="text/sitemap">
<param name="Name" value="Help gebruiken">
<param name="Local" value="SBO.chm::/html/Help_gebruiken.htm">
</object>
</ul>
1. Modified _temp.hhc file with correct and cleaned up merging
2. a _temp file that we saved as slave.hhc and modified so that the slaves can access the master.chm topics.
Now how do we merge these things together?
Firstly we need to build all the slave projects in flare so that we have recent and up to date builds/ We will now navigate to the Temporary folder again for each slave project Slave1->Output->Username->Temporary->TargetName(standard Microsoft HTML HELp)->Content
Copy the slave.hhc that we modified into this content folder. And open up the HHP file with HTMLHELP WOrkshop you should see the following:

Click on the blue circle that i marked on this picture (Add/Modify Windows Defintiions) In the screen click on the files tab you will see the following:

Change the TOC to slave.hhc
Save the changes
You should now have 2 .HHC files in your projcect:
_Temp.hhc - the actual TOC of the slave project
_slave.hhc - the modified TOC of your master project.
Now build the CHM file IN your HTMLHELP workshop by clicking hte following:

repeat all the steps listed here for all your slave projects and you should have the following result :

I will explain how to make a merged idnex in a little bit, but have some work to do