•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 423,450 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,769 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 81959 | Replies: 24
![]() |
There is no way to do this. Print orientation is something the USER specifies, via their print dialog box. You cannot and should not want to control this. The answer is to specify a print style sheet that formats the document in such a way that landscape orientation is not required.
This falls into the same category of developers wanting to "disable" the user's Back button. That's a no-no. That's part of the USER interface. The proper way to handle the situation is to assume they MIGHT press BACK, and write code to handle that eventuality.
You cannot FIX a problem by BREAKING user functionality.
This falls into the same category of developers wanting to "disable" the user's Back button. That's a no-no. That's part of the USER interface. The proper way to handle the situation is to assume they MIGHT press BACK, and write code to handle that eventuality.
You cannot FIX a problem by BREAKING user functionality.
•
•
Join Date: Mar 2006
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
Originally Posted by tgreer
There is no way to do this. Print orientation is something the USER specifies, via their print dialog box. You cannot and should not want to control this. The answer is to specify a print style sheet that formats the document in such a way that landscape orientation is not required.
This falls into the same category of developers wanting to "disable" the user's Back button. That's a no-no. That's part of the USER interface. The proper way to handle the situation is to assume they MIGHT press BACK, and write code to handle that eventuality.
You cannot FIX a problem by BREAKING user functionality.
I think you are assuming this is for a wrongly designed page. In my case I need landscape printing of a print version of a page. The client requires this.
So I have come to the conclusion that this works in firefox:
@page land {size: landscape;}While this is suppose to work in IE:
.land{filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}HTML:
<BODY class="land">
•
•
Join Date: Dec 2006
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
thanks a lot!
you are the first to give me answer that it's possible,
i'll try it later..
have a good day:lol:
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Previous Thread: Remove URL from Bottom of Printed Web Page
- Next Thread: Right Align Option Element Text



Linear Mode