This content has been marked as final. Show 8 replies
Hi Rick,thanks so much for your reply...but our requirement is to print from the chm file.
We deliver the CHM file to the customer and they want give printout from chm file.
To back up Rick's suggestions, there is no way to insert a page break when printing from inside a CHM. Printing in this fashion is a bit like dumping to an ASCII text file and printing it.
My entire project is over....
i am in 11th hour....
there are plenty of customer reviews of my chm file is also over....
but they need the feature to print from chm file....This is my showstopper....
I can not switch from CHM TO PDF now.....
You said "When I choose "Print the selected heading and all subtopics" the document prints with no margins (top, bottom, right or left) and there are no page breaks. The document should print with margins (1" x 1" on sides, top and bottom)"
Is that the only issue? Unless something has changed, it used to be the case that all styles were lost if you printed all topics in the book. There is a way of dealing with that in Snippet 46 on my site but it is a real pain. It will not give you page breaks.
There is a separate snippet on inserting code to force page breaks in HTML but you really don't want to go there. You would have to print, decide where the break is and then insert code. The next person's printer might not handle things the same way. For example if you have some users in the US with Letter size paper and pretty much everywhere else using A4.
Rick's advice to create PDFs is the better solution. You could create buttons allowing the user to click those in the CHM and get the printed output.
...and it really wouldn't take too long to do.
I do understand that your project is over. But you still have the project source files, right?
My point was not to suggest you replace the .CHM with .PDF. What I suggested was to use RoboHelp to create a PDF as you wish for it to be printed. Then add that PDF to your RoboHelp output. This would provide your end user with a slightly larger CHM file as the PDF is inside it. If your user wants to print, instead of using the option to print from the CHM, they click a link somewhere inside the CHM and that link will open the PDF. They could then print from the PDF and it would look as pretty as any print does on paper.
You seem to be implying that you have already shipped the CHM file and you just want an easy fix for the end user. The problem here is that what I've proposed is probably the easiest fix you are going to find. Regardless of how you choose to try and fix it, there is no getting around recompiling your CHM file and redistributing it.