• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 650
  • 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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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