• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Troubleshooting tips: Generating Word output

Community Expert ,
Aug 09, 2021 Aug 09, 2021

Copy link to clipboard

Copied

This may also be relevant to PDF, although I haven't tried yet.

 

If you get an error generating a Word doc, or you open the doc and there's no content except (broken) front and back matter, you might need to check how the condition tags are applied in your topics. 

 

There was no useful information in the log, but by a process of elimination I found that topics have whacky condition tag placement.

 

One example was the exclude condition being applied to the individual cells of the table, rather than excluding the entire table.

 

<table class="SimpleGridNoShading" style="border-spacing:0px;">
    <colgroup>
      <col style="width: 30%;" />
      <col style="width: 70%;" />
    </colgroup>
    <tbody>
      <tr class="t1Row" style="">
        <td data-condition="Others:Exclude" style="border-spacing:0px;width: 30%;"> </td>
        <td data-condition="Others:Exclude" style="border-spacing:0px;width: 70%;"><br />
          
        </td>
      </tr>
    </tbody>
  </table>

Removing and reapplying so the entire table allowed this topic to generate in this case:

<table class="SimpleGridNoShading" data-condition="Others:Exclude" style="border-spacing:0px;">
    <colgroup>
      <col style="width: 30%;" />
      <col style="width: 70%;" />
    </colgroup>
    <tbody>
      <tr class="t1Row" style="">
        <td style="border-spacing:0px;width: 30%;"> </td>
        <td style="border-spacing:0px;width: 70%;"><br />
          
        </td>
      </tr>
    </tbody>
  </table>

(Don't at me about an empty table conditioned out. There's a reason for this admittedly unusual scenario.)

 

Now to figure out why all the other topics won't generate. 🙂

Views

63

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 09, 2021 Aug 09, 2021

Copy link to clipboard

Copied

Another one is whacky Word xml code. While I have scripts that strip most of the Word code out, obviously some upgrade added 'v:shapes="Picture_x0020_1" ', which prevents RH2020 from generating a Word doc.

 

<img src="../images/Dashboard_13.png" v:shapes="Picture_x0020_1" alt="" border="0" />

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 09, 2021 Aug 09, 2021

Copy link to clipboard

Copied

LATEST

Using 'inherit' for any padding value prevents Word generating. So check none of these exist:

padding: inherit;

padding-left: inherit;

padding-right: inherit;

padding-top: inherit;

padding-bottom: inherit;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp