Copy link to clipboard
Copied
Topics printed with the Print button in the toolbar are cutting off the right margin in IE 7 & 8. It seems independent of the printer. This doesn't occur in Firefox.
Anyone encounter this before? Any documented fixes, or is it a known issue?
Copy link to clipboard
Copied
Hi there
I'm hopeful Willam will have an easy CSS fix for folks that insist on printing that which is intended to be presented on the screen.
Probably involves some @Print incantation or some such... Rick
Helpful and Handy Links RoboHelp Wish Form/Bug Reporting Form Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95! |
Copy link to clipboard
Copied
@media print{} is an easy incantation that is only suitable for older wizards (your beard must be white and must be a minimum of 30 centimeters long). Normally the training for young wizards starts with complex JavaScript-spells. But when they reach a certain age, young wizards allways seem to go for the easy solution. Like there's any fun in that!
With @media print you can control styles for printing only. For instance, to create a right padding to the body, add
@media print { body {padding-right: 10px;} }
Just paste the script somewhere in your style sheet.
In case it doesn't work, can you post a screenshot of what happens? Does it only happens for tables or images or does it happen for all content?
Greet,
Willam
Copy link to clipboard
Copied
Thanks, but no luck on that solution.@media print { body {padding-right: 10px;} }
I change the padding to several different px values and did not see any resulting shift in the right margin.
This is how the page is appearing when it prints.
Is there something in the JS the Print button uses that can help?
var printAction = function()
{
var topicPane = top.frames[1].frames[1];
topicPane.focus();
topicPane.print();
}
Thanks.
Mark
Copy link to clipboard
Copied
Is one browser set to Fit to Page and one not set that way?
Create a topic without those lines and the starred stuff on the right. I suspect that will print OK and the starred stuff is more likely the cause.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Both browsers have "fit to page" enabled. Of course since RH7 uses frames, and you need a custom script to print just one frame "fit to page" might not have an effect on printer output. Does using the JavaScript for printing single frames have an effect? Can it be modified to force the frame to fit the page?
Topics that don't have the right-float menu still print with their margin cut off.
Copy link to clipboard
Copied
If you create a new single topic project that replicates this problem in a topic without the float menu, I will take a look. See the contact page on my site.
See www.grainge.org for RoboHelp and Authoring tips