Skip to main content
June 3, 2015
Question

Linked Word File import

  • June 3, 2015
  • 1 reply
  • 376 views

When using linked word files, the html output always creates new styles and does not consider my .CSS file. All html styles use a preceding "WD_" string and all headings are not imported as <h1>..<h9>. Of course I set the "File | Project settings | Import" settings.

When I do not link but import the word file, the html output is different.

This topic has been closed for replies.

1 reply

Captiv8r
Legend
June 3, 2015

When you see Word imported HTML ignoring the CSS, it usually means the Word source document was not well formatted. The user that created it likely had no clue they could define a heading and simply apply it. Instead, they likely just selected across the text they wanted to appear as a heading, then made the text larger and whatever color they wanted it to be.

In these cases, RoboHelp has no clue that the text should be considered to be using styling. Hence, a bunch of WD type of styles are created and used. Because nothing has been specifically designated as a Heading, the CSS (while it may have its own rules that have been defined) will then be ignored, as there really aren't any true "headings" or other things to consider.

I know you said that things are treated a bit differently depending on whether the document is linked or imported. But these are the general guidelines and notes we have used for many years.

Cheers... Rick

June 3, 2015

I would agree with you, if just the headings would be affected. But after link-import I can find a private doc-CSS which adds a preceding "WD_" to every style - even to the normal style. And, as I also wrote, the same wordfile with my own .CSS imports perfectly, when I use "Import from Word" instead of linking and also the headings import right.

Peter Grainge
Community Expert
Community Expert
June 4, 2015

There is a page on my site that covers importing and explains how to avoid

the prefix.

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