print in landscape mode

  • Thread starter Thread starter nuhura01
  • Start date Start date
N

nuhura01

I want a printing properties to be set to landscape mode, so that when
the user click a print button, it will print in landscape mode
automatically.

I use this code in the code-behind of the web form to print the page:
HttpContext.Current.Response.Write("<script>window.print();</script>")

How could I set it to print in landscape mode? Any solution for
this?

Thanks...
 
No, you don't have any control other than window.print over the client-side
printers. You can achieve it with an ActiveX or WSH (Windows Scripting Host)
calls but it will require users to set special security for your site.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
 
Back
Top