Skip to main content
Inspiring
March 13, 2012
Answered

Some hyperlinks not appearing in generated Word doc

  • March 13, 2012
  • 1 reply
  • 3193 views

When I generate a Word document, some of the hyperlinks show up, but not all. 

I looked at Peter Grainge's site under Printed Documentation and issues, but didn't find anything that matched my problem. I also looked here on the forum, but didn't find anything.

I have a feeling it's a problem with style mapping because the links that aren't showing up are those that appear in lists (both ol and ul).

In other words, if I put a link in a paragraph that's a regular <p></p> paragraph, it appears in the Word doc and the link itself works.

If I put it in a <li></li> paragraph, the link does not carry over; there is no blue underlining and if you mouse over what should be a hyperlink, the cursor does not change to a hand icon.

Can anyone provide any suggestions?

I'm using RoboHelp 9 and Word 2010.

This topic has been closed for replies.
Correct answer RoboColum_n_

AHA!  I think I've found what's causing the problem, though I don't know why it's happening.

When I generate the printed document, I'm generating just one "book" in the TOC. That is, when I select what is to be included in the printed doc, I select only the Accounts Payable book. When I do that, some links don't show up in the printed document.

If, however, I generate the entire project, all the links work. So, is this a bug, or am I doing something wrong when I try to generate just a book at a time?

I apologize for the long thread, but I wanted to let people know what I had tried. If it's any consolation, my repeated psots will provide a rich source of text for someone searching for a similar problem. :-)


That's a nice piece of detective work. If the links go to content that is not in your Accounts Payables book then this is as expected. After all you wouldn't want links going to content that didn't exist.

1 reply

MM_ActonAuthor
Inspiring
March 13, 2012

Further investigation reveals that it's not as I suspected. It's not just <li> -- and <li> tags are okay if they're within a table cell.

I added a link to a regular paragraph (<p>), but it didn't show up when I generated the Word doc.

I also tried generating a PDF. Didn't show up.

I tried the following combinations:

MS Word Template with Style_Mapping.dot

MS Word Template with a copy of Style_Mapping.dot that I just renamed

Stylesheet with None

Stylesheet with default.css

I created a new topic with 5 links.

The first was in a <p>. It showed up and worked.

The second was in an unordered <li>. It showed up and worked, but the following one didn't.

This is seeming to be more like a bug. I updated to 9.0.2.271 when it first became available. Is anyone else having problems?

Peter Grainge
Community Expert
Community Expert
March 13, 2012

Check that the failed links are not set as popups, that will cause them not be shown as links in the printed documentation.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
MM_ActonAuthor
Inspiring
March 14, 2012

I compiled a new .chm file and tested it. All of them are regular links. Here's the actual HTML code underneath it. To me, it looks like they're all the same type of links.

<h1>About this test</h1>

<p>This is a test. This is a <a href="Adding_1099_Vendors.htm">link to

any</a> topic.</p>

<ul type="square">

    <li>So is <a href="AP_Credit_Memo_FAQ.htm">this</a></li>

    <li>And <a href="Close_Computer_Checks.htm">this</a></li>

</ul>

<p>And, of course, so are these:</p>

<ol type="1">

    <li>Enter a <a href="Choosing_Facilities.htm#facility_changing">facility</a>.

     This was to an anchor elsewhere.</li>

    <li>Do <a href="Deleting_Assets.htm">something</a>. </li>

</ol>