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

Script error in a chm file when printing to PDF

New Here ,
Aug 06, 2015 Aug 06, 2015

Copy link to clipboard

Copied

Hi,

Did a quick search to see if this question has been posted and answered before in a RoboHelp forum. I'm sure Peter Grainge, the RoboHelp guru, will know the answer.

I'm  having scripting problems trying to print a .chm file on my computer. Not all .chms on my computer have the problem. Only this particular one that a developer gave to me that he produced from Sandcastle. I want to print the entire .chm contents to PDF.

When I click Print on the .chm toolbar and choose "Print the selected topic" in the Print topics dialog box,

print-topics.png

All works as expected. I can choose the Adobe PDF printer as my printer and create a PDF.

However, if I try to print by selecting Print the selected heading and all subtopics


I get a ton of scripting errors, like this one:

script-error.png

Is this something I can fix on my side or does the developer need to change settings in Sandcastle? I thought it might be the hhctrl.ocx Active X control on my machine, but it exists on my machine and seems to be registered.

I know this a RoboHelp forum, but I figured this is a general enough problem that has occurred many times in RH.

Views

595

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 06, 2015 Aug 06, 2015

Copy link to clipboard

Copied

LATEST

Thanks for the kind words but whilst I may be A RoboHelp guru, I am far from being THE RoboHelp guru, especially when it comes to CHMs. I last worked with them about 15 years ago.

Printing all topics always has been a problem. See Item 2 at Snippets CHMs. I am guessing that the script error is causing by it not finding something in the same way that topics cannot find their stylesheets unless there is a whole load of duplicating of files.


Maybe someone with more knowledge of CHMs and / or scripts can help.



See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

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