Skip to main content
Known Participant
April 14, 2017
Answered

Open CHM from another CHM

  • April 14, 2017
  • 1 reply
  • 3543 views

Hi guys,

I would like to open a chm file in a separate window from another chm file. Both the chm files are in the same folder.
Suppose one of my chm named XYZ.chm and another one is ABC.chm.

Now, in my ABC.chm, I want to provide a link to open the XYZ.chm in a separate window. I tried these solutions:

<a href="XYZ.chm">XYZ</a>.

This does not open up anything.

Then, I tried to provide link to a default topic name or home page topic in the XYZ.chm like this:

<a href="XYZ.chm::/Welcome_to_Adobe.htm">XYZ</a>.

This opens up a that particular topic "Welcome to Adobe" and that too in the same window of the ABC.chm.

Then, I tried to provide a relative path but that too did not work.

Then, I tried a local path. That did work but its not useful because it can always change.

So, I am looking for a solution which is independent of the local path. Maybe, through a javascript or something if it is possible.

Please help. Thanks in advance.

- Jignesh

This topic has been closed for replies.
Correct answer Captiv8r

Thanks Rick for your help. It seems its working fine.

Just have a small issue with the text alignment:

The text on the button is not aligned with the text. It is just a bit on the top. Is there a way to fix it?


Hmmm, interesting proposition.

Okay, here's the deal. I know how to make it happen, but it will require jumping through some hoops to get there. I tried to find a nice and easy way to accomplish it, but at the moment this is the best I've come up with. Hopefully others will see this and improve upon it.

Here is a youtube video I just created to demonstrate.

1 reply

Captiv8r
Brainiac
April 14, 2017

Hi there

Perhaps this recent thread helps?

Re: Link .CHM to .CHM using FrameMaker/Robohelp

Cheers... Rick

Known Participant
April 14, 2017

Thanks Rick. I followed the HH.exe just like how it is explained in the link but it displays an error for me:

Cannot open the file.

In that thread, when you are talking about a folder along with the topic name, I am not sure what you meant exactly. I have both the chms in the same folder. Is the folder name still required?

If so, then which folder name? I mean do we need to provide the exact directory.

Here are the screenshots:

Here is the code:

<!--Metadata type="DesignerControl" startspan

  <object classid="clsid:D5F92943-15DB-11d1-8EED-00DC929131C8" id="Shortcut1"

  border="0" style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px;

  margin-right: 0px;" align="bottom">

  <param name="_Version" value="65536"  />

  <param name="_ExtentX" value="1693"  />

  <param name="_ExtentY" value="661"  />

  <param name="_StockProps" value="13"  />

  <param name="ForeColor" value="0"  />

  <param name="BackColor" value="15790320"  />

  <param name="UseButton" value="-1"  />

  <param name="UseText" value="0"  />

  <param name="ControlLabel" value="INFORM"  />

  <param name="UseIcon" value="0"  />

  <param name="Items" value=",HH.exe,ms.its:InformSlideshow.chm::/Welcome_to_Inform_Slideshow.htm$$**$$"

   />

  <param name="Image" value=""  />

  <param name="FontInfo" value="Arial,10,0,,"  />

  <param name="_CURRENTFILEPATH" value="d:\Informa_Localization\Online Help\Slide_View.htm"

   />

  <param name="_ID" value="Shortcut1"  />

  <param name="Items" value=",HH.exe,ms.its:InformSlideshow.chm::/Welcome_to_Inform_Slideshow.htm$$**$$"

   />

  <param name="Window" value=""  />

  </object>--><object

  classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11"

  id="Shortcut1"  type="application/x-oleobject">

  <param  name="Command"  value="Shortcut" />

  <param  name="Button"  value="Text:INFORM" />

  <param  name="Font"  value="Arial,10,0,," />

  <param  name="Item1"  value=",HH.exe,ms.its:InformSlideshow.chm::/Welcome_to_Inform_Slideshow.htm" />

</object>

<!--Metadata type="DesignerControl" endspan-->

Please help.

- Jignesh

Known Participant
April 30, 2017

Ahhh yes. This is an odd phenomenon with CHM files. I'm not sure of the exact cause, but what happens is that when a CHM file has been opened from an application, the path that it understands is different than the actual path. Weird, eh?

You will likely need to resort to some JavaScript that deduces the path. Hang on while I go fetch that article...

First, click here and check out the article.

And this link may be helpful too

Good luck... Rick


First link is not working. It displays the error 404 Not found.

Second link, not able to understand much.