Click here to Skip to main content
15,917,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am using window.print() to print a page. I want to set the print page orientation
using c#.net in asp.net. Is it possible to set the page orientation
from the code? If so can some please help me out how to do that.

thank you.....
Posted

1 solution

Printing a page is client side functionality. I doubt you can set it on server side. You can surely set it on aspx page using CSS. Have a look at this thread[^] discussing the same.

Surely, you can have CSS defined at runtime through your code, if that helps!
 
Share this answer
 
Comments
abdu_karami 25-Jan-11 3:31am    
thanks Sandeep...
let me try ths...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900