Link to home
Start Free TrialLog in
Avatar of arendt73
arendt73

asked on

Page defaults to landscape print

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.
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

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);
}
ASKER CERTIFIED SOLUTION
Avatar of hankknight
hankknight
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial