User Name Password Register
DaniWeb IT Discussion Community
All
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 330,296 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 2,821 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: 72408 | Replies: 24
Reply
Join Date: Jun 2005
Posts: 1
Reputation: aarti_ap is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
aarti_ap aarti_ap is offline Offline
Newbie Poster

Re: How to set landscape orientation?

  #11  
Jun 28th, 2005
I tried the code mentioned above in the css but it doesnot work. Is there any other way to do this?
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 33
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: How to set landscape orientation?

  #12  
Jun 28th, 2005
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.
Reply With Quote  
Join Date: Mar 2006
Posts: 2
Reputation: Danne is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Danne Danne is offline Offline
Newbie Poster

Help Re: How to set landscape orientation?

  #13  
Mar 21st, 2006
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">
My problem is IE. It looks great in the preview, but it just doesn't send it to the printer.
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 33
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: How to set landscape orientation?

  #14  
Mar 21st, 2006
You're posting in a thread that's over a year old... and I don't see a question in your post. Would you mind starting a new thread, and ask your question, if you have one, there?
Reply With Quote  
Join Date: Mar 2006
Posts: 2
Reputation: Danne is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Danne Danne is offline Offline
Newbie Poster

Re: How to set landscape orientation?

  #15  
Mar 22nd, 2006
My question is:

What is wrong since it doesn't print, but shows the page the way I want in the browserpreview (IE)?
Reply With Quote  
Join Date: Dec 2006
Posts: 4
Reputation: rutigold is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rutigold rutigold is offline Offline
Newbie Poster

Re: How to set landscape orientation?

  #16  
Dec 18th, 2006
hi, my name is Mikalush
i have the same problem,
and i'm looking for a resault for few days
if anyone know what to do, i'll be very happy!

Reply With Quote  
Join Date: Feb 2007
Posts: 1
Reputation: mohammad20001 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mohammad20001 mohammad20001 is offline Offline
Newbie Poster

Re: How to set landscape orientation?

  #17  
Feb 12th, 2007
Reply With Quote  
Join Date: Dec 2006
Posts: 4
Reputation: rutigold is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rutigold rutigold is offline Offline
Newbie Poster

Re: How to set landscape orientation?

  #18  
Feb 13th, 2007
Originally Posted by mohammad20001 View Post
Use the css on the http://home.tampabay.rr.com/bmerkey/...cape-test.html


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:
Reply With Quote  
Join Date: Dec 2006
Posts: 4
Reputation: rutigold is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rutigold rutigold is offline Offline
Newbie Poster

Re: How to set landscape orientation?

  #19  
Feb 14th, 2007
OK I try it and it's really works!!

but - the quality of the print is not very good, the write is not so clear,
and also the table is not printing on all the width of the page.

any help?

:rolleyes:

thanks!!
Reply With Quote  
Join Date: Jan 2007
Posts: 2,210
Reputation: MidiMagic is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 75
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Posting Maven

Re: How to set landscape orientation?

  #20  
Feb 16th, 2007
This function belongs to the user, not the webmaster. If the user wants a landscape print, he can open the file menu and select it.

Remember that some users have printers which don't do landscape orientation.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Marketplace (Sponsored Links)
Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 6:46 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC