944,091 Members | Top Members by Rank

Ad:
Jun 9th, 2005
0

Printing in landscape

Expand Post »
Help me out in Printing the Web page in Landscape Mode, forcefully.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Rupak is offline Offline
2 posts
since Jun 2005
Jun 9th, 2005
0

Re: Printing in landscape

What exatly is the problem???

You whant to print something as landscape or setting for your site???
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,659 posts
since Dec 2004
Jun 9th, 2005
0

Re: Printing in landscape

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Rupak is offline Offline
2 posts
since Jun 2005
Jun 9th, 2005
0

Re: Printing in landscape

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

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. @media print {
  2. @page rotated {size: landscape}
  3. }

More info http://www.w3.org/TR/1998/REC-CSS2-1...l#propdef-page
or http://www.daniweb.com/techtalkforums/thread14877.html
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,659 posts
since Dec 2004
Jun 9th, 2005
0

Re: Printing in landscape

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.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Jun 9th, 2005
0

Re: Printing in landscape

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.
Reputation Points: 36
Solved Threads: 6
Posting Whiz
Troy is offline Offline
354 posts
since Jun 2005
Jun 22nd, 2005
0

Re: Printing in landscape

Hi,

I found this code source that can be use to print in landscape mode.

In HEAD tag you must put:

<style type="text/css" media="print">
div.breakbefore
{
page-break-before:always
}

table.page
{
filter: progidXImageTransform.Microsoft.BasicImage(Rotation=3);
}
</style>


After BODY tag you must use a TABLE tag that contais all content of the page:

<BODY>
<TABLE class="page">
... Your page ...
</TABLE>
</BODY>
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Vikcy is offline Offline
1 posts
since Jun 2005
Sep 27th, 2006
0

Re: Printing in landscape

doesn't work! agrrrrrrrrrr...

any1 has any other suggestions?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
achisolomon is offline Offline
1 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Drop down box won't shut off video on reverse in IE
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: How to pass the values of javascript in perl





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC