Printing CHM topic/subtopics

Please post all questions and comments regarding Help & Manual 7 here.

Moderators: Alexander Halser, Tim Green

Printing CHM topic/subtopics

Unread postby ccinocco » Fri Sep 04, 2015 4:43 pm

Hi,

One of my SMEs is questioning the way topics print from the CHM file. I am sure this is the way it is supposed to behave (strangely, to say the least - but CHMs are an old system).

He selects the Print button in the help window and then selects the option Print selected topic and all subtopics. It does print the selected topic - but prints other topics first based on, I believe, the hierarchy of the links within the topic and possibly TOC. There are several links in the topic for help navigation/procedural purposes. He feels it should print the selected topic first and then the topics linked within AFTER. While I agree that this would make far more sense, I've checked many other chm projects I've worked on over the last 15 years, and the behavior he is experiencing seems to have been around forever (doesn't make a difference what the program was used to create the help - H&M or RoboHelp - the end result is a CHM file).

I checked, and it works exactly the same way when I right-click on the topic in the TOC and select the Print selected topic and all subtopics option.

I found an old forum topic where this is basically discussed ---

viewtopic.php?f=19&t=11682&p=47834&hilit=printing+wrong+subtopics#p47834

I am sure nothing has changed since CHMs are old --- but want to confirm more recently than 2012. I don't believe this can be controlled - but I have to ask: Is there something I can do to control this OR is it just the way the CHM format works?

Thanks.

C
Cindy @ Trimble
User avatar
ccinocco
 
Posts: 51
Joined: Thu Jul 27, 2006 6:28 pm
Location: Denver, CO

Re: Printing CHM topic/subtopics

Unread postby Tim Green » Mon Sep 07, 2015 7:35 am

Hi Cindy,

Like so much else in the ancient Microsoft CHM viewer, the Print function is simply awful. If you use it at all, we can only recommend using the single-topic option. For better single-topic printing, the Premium Pack CHM skins have a smart print button that generates a printer-friendly format with a preview. The modern standard CHM skins that come with Help & Manual also have a print button that you can activate in the topic header when you publish with them (check the option in the Include Options box in the Publish screen).
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
User avatar
Tim Green
Site Admin
 
Posts: 20433
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany

Re: Printing CHM topic/subtopics

Unread postby dan weil » Wed Dec 19, 2018 7:05 pm

Printing CHM topic: Do not allow print or copy in CHM

how, exactly, do I add javascipt (js) routines to the html files to
a) turn off the right click menu (nomenu.js)
b) Clear the clipboard to stop Print screen button (nocopy.js)

is it possible?
dan weil
 
Posts: 2
Joined: Mon Dec 03, 2018 7:48 pm

Re: Printing CHM topic/subtopics

Unread postby Tim Green » Thu Dec 20, 2018 7:56 am

Hi Dan,

a) turn off the right click menu (nomenu.js)
b) Clear the clipboard to stop Print screen button (nocopy.js)

Neither of these things are possible, not even with low-level programming languages like C, let alone Web scripting like JS. The CHM/HTML Help Viewer is a Windows component that has only very minimal configuration options, and it has no interface to JavaScript at all. You can only use JS within your CHM pages. Everything beyond their boundaries is out of reach.

The configuration you can do is available in the Project Explorer on the left, in Configuration > Publishing Options > HTML Help > Extended HHP Options. However, nothing you can do there will disable or even configure the right-click context menu in the viewer, so all the functions there are always available to the user.

You might want to have a look at the eWriter format in Help+Manual 7, which is an alternative to CHM that eliminates a lot of the disadvantages. Among other things, that does allow you to disable printing.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
User avatar
Tim Green
Site Admin
 
Posts: 20433
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany

Re: Printing CHM topic/subtopics

Unread postby dan weil » Fri Dec 21, 2018 3:02 pm

Hi
Microsoft Forums seems to say it is possible to block the right click, I have tried what they say but I probably did it incorrectly, hence my question

https://social.msdn.microsoft.com/Forum ... um=devdocs

Maybe that is only for the raw Html generated chm.
I found a similar posting elsewhere on the web, I can't remember where though

Dan
dan weil
 
Posts: 2
Joined: Mon Dec 03, 2018 7:48 pm


Return to Help & Manual 7 Forum

Who is online

Users browsing this forum: No registered users and 9 guests

cron