468,733 Members | 1,491 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,733 developers. It's quick & easy.

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 2304
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 zhoujie | last post: by
xarzu
2 posts views Thread by xarzu | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.