Skip to main content
Known Participant
September 9, 2022
Answered

Javascript appears in Word output

  • September 9, 2022
  • 2 replies
  • 315 views

I am using RH 2020 (the new UI), and have just updated to update 8. 
I have an old project that I have upgraded and I am able to output to the Frameless preset with no issues, but when I try to create a Word output (which runs successfully) I see sections of what I believe is javascript in the document (see below). This code can be seen within the <body> tags in the source code but surely shouldn't be part of the output. The rest of the Word output seems to be fine. Has anyone else observed this and is there a solution please? I've looked long and hard at the settings for the Word output present but can't see anything that would account for this. I've also not found this issue reported elsewhere.

    This topic has been closed for replies.
    Correct answer Jeff_Coatsworth

    If you can see that code in the source RH files, then you've probably contaminated the source file with output files at some point. Try cleaning it up and generate again.

    2 replies

    Jeff_Coatsworth
    Community Expert
    Community Expert
    September 9, 2022

    Usually it happened if you pointed the output file location to where the source project resided. I'm pretty sure that changed in the New UI versions of RH2019+.

    Jeff_Coatsworth
    Community Expert
    Jeff_CoatsworthCommunity ExpertCorrect answer
    Community Expert
    September 9, 2022

    If you can see that code in the source RH files, then you've probably contaminated the source file with output files at some point. Try cleaning it up and generate again.

    Known Participant
    September 9, 2022

    Thanks for the response Jeff. That seems to have solved the problem without breaking the output in either format (Frameless or Word). It seems obvious with hindsight but I had assumed that code was generated automatically and was therefore needed...
    For future reference, how might I have contaminated the source files with output files please?