Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,
Ive been searching and searching , and every answer i get is no. X|
Why is it that with activex using the WScript.Shell you can edit regitry entries , but you cant set the printer orientation to landscape???
Posted

Because you should use css to specify this, put something like this in the html head section:


CSS
<style type="text/css">
@page
{
    size: landscape;
    margin: 2cm;
}
</style>

<style type="text/css" media="print">
@page
{
    size: landscape;
    margin: 2cm;
}
</style>
 
Share this answer
 
i solved this by creating a print template and using it via activex, this only works in internet explorer
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900