471,323 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,323 software developers and data experts.

print in landscape mode

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...

Feb 27 '07 #1
1 2382
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
<nu******@yahoo.comwrote in message
news:11********************@k78g2000cwa.googlegrou ps.com...
>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...

Feb 27 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by gilga123 | last post: by
reply views Thread by gilga123 | last post: by
3 posts views Thread by MarcJ | last post: by
reply views Thread by Matthew Belk | last post: by
reply views Thread by BlueSky | last post: by
2 posts views Thread by Brad Pears | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.