954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Printing in landscape

Help me out in Printing the Web page in Landscape Mode, forcefully.

Rupak
Newbie Poster
2 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

What exatly is the problem???

You whant to print something as landscape or setting for your site???

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

I would like to print a Web page in landscape mode. When I use window.print() function it prints default in Potrait mode.

I need to print the Web page in Landscape mode with out asking the user to change the setting.

Rupak
Newbie Poster
2 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

Someday, browsers will pay attention to the size property of @page CSS rules:

@media print { 
  @page rotated {size: landscape}
}


More info http://www.w3.org/TR/1998/REC-CSS2-19980512/page.html#propdef-page
or http://www.daniweb.com/techtalkforums/thread14877.html

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

The JavaScript window.print() method simply passes a print request to the underlying OS, which will bring up a dialog box. The user will select portrait or landscape from that box. In other words, print orientation is up to the user, as it should be in my opinion.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

tgreer is right. I agree with tgreer that the user should always be allowed to have control over the print attributes. However, I do wish there was a way that the web developer could indicate printing defaults for a document that then the user could override if they wanted.

There are ActiveX components to do this. (Probably Java applets as well.) I used an ActiveX component once that worked by allowing you to specific things such as the page header and footer, portrait or landscape, etc. The component then saved the user's settings, temporarily changed them, sent your page to the OS for printing, then restored the user's page settings.

Check out http://www.meadroid.com/scriptx/index.asp . It's the component I used before.

Troy
Posting Whiz
362 posts since Jun 2005
Reputation Points: 36
Solved Threads: 6
 



... Your page ...

Vikcy
Newbie Poster
1 post since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

doesn't work! agrrrrrrrrrr...

any1 has any other suggestions?

achisolomon
Newbie Poster
1 post since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You