Skip to main content
defaultntfl65knte3g
Known Participant
September 29, 2023
Question

Can't generate a Word doc

  • September 29, 2023
  • 2 replies
  • 444 views

Using RH 2022.3.93 on Windows 11.
Trying to generate a Word doc and I'm getting an error.
Viewing the log, I get the following:

Converting mergedHTML.htm
CssParser error: line 49 col 7: invalid identity. CSS => /**/
A:visited {
color: #800080;
}
A:link {
color: #0000ff;
}
/**/

/**/

Error: ENOENT: no such file or directory, lstat 'C:\Users\xxxx\AppData\Local\Temp\RHTMP\Active Alerts WordLSB4pj\Vanguard_Product_Documentation.docx'
Error: Failed to generate Active Alerts Word. Check log for more details.

 

Any help or ideas on how to fix this?

    This topic has been closed for replies.

    2 replies

    Peter Grainge
    Community Expert
    Community Expert
    October 2, 2023

    mso in a CSS file suggests content has been imported from Word and those lines often causes issues. 

     

    Try commenting them out.

    ________________________________________________________
    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Community Expert
    October 2, 2023

    The first part sounds like there is something in the css file that Word doesn't like. Open it, switch to code view and have a look at line 49 for any weirdness in the few lines above and below.

     

    If you can't see anything weird, you can test the theory by renaming the css file outside of Robohelp (e.g. just change the css extension to .css1). That'll break the link. Everything will look wrong, but try generating to see if that gets rid of the first error. If you still get the error, you know it's not in the css file. Post back with how you go and we can try to think of other ideas.

     

    The second part could be a permission error. Double-check with your IT guys that you have read/write permission for the AppData folder and sub folders (you usually should have, but sometimes IT do weird things)

    defaultntfl65knte3g
    Known Participant
    October 2, 2023

    Amebr,

     

    I did what you suggested and still have errors. The first error isn't there anymore, but I have the following:

    Converting mergedHTML.htm

    Error in declaration 7 of table {

                    border-spacing: 0px;

                    width: 480;

                    border-collapse: collapse;

                    mso-table-layout-alt: fixed;

                    border: none;

                    mso-border-alt: solid #999999 .5pt;

    }

    CssParser error: line 1 col 184: "}" expected.  CSS => table{border-spacing:0px;width:480;border-collapse: collapse; mso-table-layout-alt: fixed;     border: none; mso-border-alt: solid #999999 .5pt; mso-border-bottom-alt: solid silver .5pt;     mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-insideh: .5pt solid #999999;     mso-border-insidev: .5pt solid #999999;}

    Error in declaration 10 of td {

                    border-spacing: 0px;

                    width: 166;

                    vertical-align: top;

                    border-top: none;

                    border-left: solid #9999991 .0pt;

                    border-bottom: solid #C0C0C0 1.0pt;

                    border-right: solid #9999991 .0pt;

                    mso-border-top-alt: solid #999999 .5pt;

                    mso-border-alt: solid #999999 .5pt;

    }

     

    Is it looking for a table definition style? And how do I even find the errors in the content? This new version of RH isn't showing where to look.