Skip to main content
Douglas_Campbell
Inspiring
May 14, 2013
Answered

How do I print a topic using skin button?

  • May 14, 2013
  • 1 reply
  • 686 views

I have tried achieving this using the toolbarscripts01.js created by Willem Van Weeden on Peter Grainge's site. I've implemented .js in the skin for use with PDFs before, so I'm pretty sure I'm doing it right, but on click, nothing happens, when it should print. Script and instructions can be found here.

http://www.grainge.org/pages/authoring/twisty/twisty.htm

I'm using RH10 and outputting WebHelp.

I should also mention that I first tried the method called Print Button for WebHelp on this page, but it didn't work either.

http://www.grainge.org/pages/snippets/snippets.htm#print

Has anyone else successfully created a print topic button in the skin nav bar? Any suggestions for alternatives or what I might be doing wrong?

This topic has been closed for replies.
Correct answer Peter Grainge

For now duplicate what is in the download and don't use a custom image. Logic dicatates there has to be a difference and you need to avoid any you know about.

Have you added the js file to baggage?

Create a brand new project and go through it line by line. If that fails, see the Contact page on my site and send the new project.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

1 reply

Peter Grainge
Community Expert
Community Expert
May 14, 2013

Neither of the scripts would be there unless they had been tried first.

The first one has a Rh project set up that you can download. First please try that and confirm that it is working there.

Are you testing on generated output rather than preview?


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

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

I just compared the project files from the download against what I had done in my own project. They are identical. The only difference was that I had chosen a custom image. So I chose none for image and just used text, as in the example project. But the results were the same.

The project download does work when I generate output. RH10 upgraded the project files for me when I opened the project.

I am testing on generated output and not on preview.

I don't know what I could be doing wrong. I see nothing different

Peter Grainge
Community Expert
Peter GraingeCommunity ExpertCorrect answer
Community Expert
May 14, 2013

For now duplicate what is in the download and don't use a custom image. Logic dicatates there has to be a difference and you need to avoid any you know about.

Have you added the js file to baggage?

Create a brand new project and go through it line by line. If that fails, see the Contact page on my site and send the new project.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

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