Skip to main content
nancy33534756
Inspiring
August 23, 2016
Answered

chm opens to search tab, not TOC

  • August 23, 2016
  • 1 reply
  • 700 views

Hi, all.

My .chm files open with the Search tab displayed, not the TOC. How do I correct this?

Thanks!

--Nancy

This topic has been closed for replies.
Correct answer Captiv8r

Hello again

You said:

That means that it is a brand new .chm. But it is overwriting the previous .chm. Maybe it picks up the previous status.

Indeed. There is a hidden file on your system that the HTML Help Viewer uses to track this information. So it won't matter how many times you generate the CHM, it will always remember that setting. One way past it is to rename the CHM file. From the Help Viewer standpoint, it's a new CHM and would then simply open with the TOC open.

You also said:

I will just make sure that the TOC is displayed before I send out the .chm, then.

And it's certainly not going to hurt anything to do that. But it's wasted effort. This is because that hidden file I mentioned earlier is different for each user. And even if you ensure the TOC is open when you close your CHM on your own PC, if an end user is simply replacing a CHM with a newer version, it will behave for them the same as it behaves for you. Meaning, if they had the CHM open at a different tab than the TOC, that's the tab they will get.

Cheers... Rick

1 reply

Captiv8r
Legend
August 23, 2016

Hi Nancy

How exactly are you opening the CHM file? If it's from an application, I believe your developer has control over how it opens.

If you are instead referring to double-clicking it, I believe the CHM viewer remembers what tab was opened last and presents that as the open tab when you close and re-open the CHM. If that's the case, the answer is to ensure the desired tab is in front before you close the CHM file.

Cheers... Rick

nancy33534756
Inspiring
August 23, 2016

Hi, Rick.

I'm double-clicking the .chm output from the SSL folder. In fact, I also opened it from the "View it now" button, or whatever it is, that you see when RH finished generating output.

That means that it is a brand new .chm. But it is overwriting the previous .chm. Maybe it picks up the previous status.

I will just make sure that the TOC is displayed before I send out the .chm, then.

Thanks!

Captiv8r
Captiv8rCorrect answer
Legend
August 23, 2016

Hello again

You said:

That means that it is a brand new .chm. But it is overwriting the previous .chm. Maybe it picks up the previous status.

Indeed. There is a hidden file on your system that the HTML Help Viewer uses to track this information. So it won't matter how many times you generate the CHM, it will always remember that setting. One way past it is to rename the CHM file. From the Help Viewer standpoint, it's a new CHM and would then simply open with the TOC open.

You also said:

I will just make sure that the TOC is displayed before I send out the .chm, then.

And it's certainly not going to hurt anything to do that. But it's wasted effort. This is because that hidden file I mentioned earlier is different for each user. And even if you ensure the TOC is open when you close your CHM on your own PC, if an end user is simply replacing a CHM with a newer version, it will behave for them the same as it behaves for you. Meaning, if they had the CHM open at a different tab than the TOC, that's the tab they will get.

Cheers... Rick