| | |
Printing in landscape
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
What exatly is the problem???
You whant to print something as landscape or setting for your site???
You whant to print something as landscape or setting for your site???
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Someday, browsers will pay attention to the size property of @page CSS rules:
More info http://www.w3.org/TR/1998/REC-CSS2-1...l#propdef-page
or http://www.daniweb.com/techtalkforums/thread14877.html
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
@media print { @page rotated {size: landscape} }
More info http://www.w3.org/TR/1998/REC-CSS2-1...l#propdef-page
or http://www.daniweb.com/techtalkforums/thread14877.html
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
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.
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.
•
•
Join Date: Jun 2005
Posts: 1
Reputation:
Solved Threads: 0
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: progid
XImageTransform.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>
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: progid
XImageTransform.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>
![]() |
Similar Threads
- edges of print missing when printing web pages (Web Browsers)
- Printing Web Page (Windows 95 / 98 / Me)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Drop down box won't shut off video on reverse in IE
- Next Thread: How to pass the values of javascript in perl
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxhelp animate automatically beta box bug calendar captcha cart checkbox child class column cookies createrange() css cursor decimal design dom download dropdown editor element engine enter error events explorer file focus form forms frameworks google gwt html htmlform ie8 iframe image() images index internet java javascript jawascriptruntimeerror jquery jsf jsfile jump listbox math matrixcaptcha menu microsoft mimic mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent pdf php player post problem progressbar prototype rated rating regex runtime scale scroll search select session shopping size sql star starrating stars text textarea validation w3c web website window windowofwords windowsxp wysiwyg xml \n






