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

Captiv8r
Brainiac
April 14, 2017

Thanks Rick.

Regarding testing, for now

I have generated the two chms and kept in the same folder.

I opened the chm from where I want to open the another chm.

I clicked on the button which displayed the message "Cannot open the file".

From your explanation, it looks like this should work.

Later, the final goal is that both the chm files will reside in the same folder after the installation of the application. Somewhere in the program files. The user has to open the main chm file from the application help button and from there, we would like to provide a link to another chm which should open in a separate window.

Is something I am missing?


Hello again

Does it work if you omit the file name? In this case the dialog would look like this:

Cheers... Rick