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.
Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.