We help IT Professionals succeed at work.

Page defaults to landscape print

arendt73
arendt73 asked
on
405 Views
Last Modified: 2012-03-15
I have a report page that the only way to properly view all data is to print it in landscape mode. But this requires the user to go through a page setup and selection of landscape to properly print.

Is there a way that when this report is generated and the user clicks on the printer icon, it automatically defaults the page setup size to landscape?  

Can this be done through CSS? If so, what would the code look like?

Thank you in advance for your help.
Comment
Watch Question

Top Expert 2013

Commented:
Not a chance.  It would be too big a security hole to let scripting access peripheral device controls.  If your your users are all using IE, you might be able to find some ActiveX widget, that hacks through security, but those type of things are dangerous to have on any network.


Cd&
Actually, you should be able to do this.

Try this:

body {
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);      
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.