• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 674
  • Last Modified:

How to force the ASP page to print landscape in ASP?

Hi,
   Anyone knows,
  How to force the ASP page to print landscape in ASP (using JavaScript / VBScript)?
  Is it possible?
  Thanks!  
0
Lst
Asked:
Lst
1 Solution
 
RoonaanCommented:
Lst, printing landscape forced by Javascript or VBScript is not possible.

As CobolDinosaur wrote in http://Q_20323599.html on using CSS for printing landscape:

> <style>
>   @media print{body {size:landscape; } }
> </style>

> Is in the CSS2 standard and I think the latest version of Opera may support it.  Other than that you will have to wait
> for implementation by the browser manufacturers.

As you see, CSS2 on this issue isn't widely supported and certainly not by IE.
Therefor the options you have (again, quoting Cd&):

> 1. Give the user instuctions on how to print the page.
> 2. Use PDF or other printer oriented format for the page.
> 3. redesign the page so it does not need to be printed landscape.

> In the end it is never going to be 100% sure, because you cannot control a printer from
> a web page, you need the user to handle it.

Kind regards,

-r-
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Tackle projects and never again get stuck behind a technical roadblock.
Join Now