473,794 Members | 2,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hoe to print a html document in landscape mode

5 New Member
Below is my html code,

is there any way to print this document in landscape mode wih CSS?

<html><head><st yle type="text/css">

table.fixed {table-layout:fixed; width:100%; border-collapse: collapse; word-wrap:break-word;}TR.head{f ont-family: verdana; font-size: 10pt; vertical-align: top ; color: #ffffff; background-color: black; font-weight: bold; }TR.data{font-family: verdana; font-size: 8pt; vertical-align: top}</style></head><body><tab le width="100%" border="0" cellspacing="0" cellpadding="4" ><tbody><tr><td ></td><td align="center"> <font size="2" style="verdana" ><b>EMERGENCY ICE Installs by Manager And Production Install Date Range</b></font><br><td></td><table width="100%" border="0" cellspacing="0" cellpadding="4" ><thead><tr>< td width="74%" align="center"> <font size="1" style="verdana" ><b>From:</b>11/01/07</font><font size="1" style="verdana" ><b>&nbsp&nbspT o:</b>01/08/08</font></td></tr></thead></table></td></tr></tbody></table><br></br>
<table border="1" class="fixed">< thead><tr class="head"><t d width="8%">Mana ger</td><td width="5%">ICE # </td><td width="10%">Pla n Prod Install Date</td><td width="10%">Doc Status</td><td width="10%">Doc Title</td><td width="7%">Owne r</td><td width="5%">Risk Desc</td><td width="4%">AS/400</td><td width="4%">Unix </td><td width="4%">Win Srv</td><td width="4%">Win Dsk</td><td width="4%">Vax</td><td width="5%">Targ et Loc</td><td width="10%">No Chg Risk Desc</td><td width="15%">Bri ef Chg Desc</td></tr></thead><tbody>
<tr class="data"><t d rowspan="12" width="5%">Rand al Hockenberry</td><td width="8%">1692 6</td><td width="10%">Dec 31,2007</td><td width="10%">Pen ding Manager-Business Review</td><td width="10%">AUT O APPROVE</td><td width="7%">Padm a Chirumalla</td><td width="5%">Low</td><td width="4%">N</td><td width="4%">Y</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="5%">TEST </td><td width="10%">TES T</td><td width="15%">TES Tzxdcxvsrfdgdsg fdfffffffffffff fffffffffffffff fffffffffffffff fffffffffffffff fffffffffffffff fffffffffffffff ffffffffffff</td></tr>
<tr class="data"><t d width="8%">1693 3</td><td width="10%">Dec 28,2007</td><td width="10%">Pen ding Non-QS Testing</td><td width="10%">SR</td><td width="7%">Padm a Chirumalla</td><td width="5%">Low</td><td width="4%">N</td><td width="4%">Y</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="5%">XC</td><td width="10%">DFV </td><td width="15%">CX</td></tr>
<tr class="data"><t d width="8%">1692 7</td><td width="10%">Dec 28,2007</td><td width="10%">Pen ding Risk Review</td><td width="10%">AUT O APPROVAL TEST</td><td width="7%">Padm a Chirumalla</td><td width="5%">Low</td><td width="4%">N</td><td width="4%">Y</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="5%">AUTO </td><td width="10%">AUT O APPROVE</td><td width="15%">AUT O APPROVE</td></tr>
<tr class="data"><t d width="8%">1592 6</td><td width="10%">Nov 27,2007</td><td width="10%">Pen ding Code Review</td><td width="10%">CM Install LEVEL 3 QS will test</td><td width="7%">Gary Zhong</td><td width="5%">Low</td><td width="4%">N</td><td width="4%">N</td><td width="4%">Y</td><td width="4%">N</td><td width="4%">Y</td><td width="5%">pitt 99</td><td width="10%">tes ting the app</td><td width="15%">CM Install LEVEL 3 QS will test</td></tr>
<tr class="data"><t d width="8%">1571 2</td><td width="10%">Nov 22,2007</td><td width="10%">Rej ected</td><td width="10%">Tes t Documentation Request</td><td width="7%">Autu mn Priddy</td><td width="5%">Low</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="5%">x</td><td width="10%">non e</td><td width="15%">run-through for documentation purposes</td></tr>
<tr class="data"><t d width="8%">1602 9</td><td width="10%">Nov 21,2007</td><td width="10%">Rej ected</td><td width="10%">Con tractor</td><td width="7%">Padm a Chirumalla</td><td width="5%">Low</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="4%">Y</td><td width="4%">N</td><td width="5%">Wind ows</td><td width="10%">tes ting</td><td width="15%">Tes ting</td></tr>
<tr class="data"><t d width="8%">1603 0</td><td width="10%">Nov 19,2007</td><td width="10%">Rej ected</td><td width="10%">Con tractor</td><td width="7%">Padm a Chirumalla</td><td width="5%">Low</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="4%">Y</td><td width="4%">N</td><td width="5%">Wind ows</td><td width="10%">tes ting</td><td width="15%">Tes ting</td></tr>
<tr class="data"><t d width="8%">1584 0</td><td width="10%">Nov 10,2007</td><td width="10%">Pen ding Follow Up Review</td><td width="10%">SMS Install LEVEL 3</td><td width="7%">Step hen Sciullo</td><td width="5%">Low</td><td width="4%">Y</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="4%">Y</td><td width="5%">pitt 88</td><td width="10%">sys tem testing</td><td width="15%">SMS Install LEVEL 3</td></tr>
<tr class="data"><t d width="8%">1571 9</td><td width="10%">Nov 08,2007</td><td width="10%">Pen ding Test Install</td><td width="10%">CM Install LEVEL 1 pitt3/col3</td><td width="7%">Step hen Sciullo</td><td width="5%">Low</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="4%">Y</td><td width="5%">pitt 88</td><td width="10%">tes ting</td><td width="15%">tes ting</td></tr>
<tr class="data"><t d width="8%">1481 5</td><td width="10%">Nov 03,2007</td><td width="10%">Rej ected</td><td width="10%">tes t</td><td width="7%">Step hen Sciullo</td><td width="5%">Low</td><td width="4%">N</td><td width="4%">N</td><td width="4%">Y</td><td width="4%">Y</td><td width="4%">N</td><td width="5%">pitt 2</td><td width="10%">tes t</td><td width="15%">tes t</td></tr>
<tr class="data"><t d width="8%">1481 6</td><td width="10%">Oct 31,2007;Nov 01,2007;Nov 02,2007</td><td width="10%">Pro duction Install Complete</td><td width="10%">Con tractor</td><td width="7%">Padm a Chirumalla</td><td width="5%">Low</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="4%">Y</td><td width="4%">N</td><td width="5%">wind ows</td><td width="10%">tes t</td><td width="15%">tes t</td></tr>
<tr class="data"><t d width="8%">1491 5</td><td width="10%">Nov 01,2007</td><td width="10%">Pen ding Follow Up Review</td><td width="10%">Con tractor</td><td width="7%">Padm a Chirumalla</td><td width="5%">Low</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="4%">Y</td><td width="4%">N</td><td width="5%">wind ows</td><td width="10%">tes t</td><td width="15%">Tes t</td></tr>
<tr></tr>
<tr class="data"><t d rowspan="1" width="5%">Lind a Humm</td><td width="8%">1603 4</td><td width="10%">Dec 06,2007</td><td width="10%">Pen ding Production Install</td><td width="10%">CM Install LEVEL 1 pitt3/col3</td><td width="7%">Rand al Hockenberry</td><td width="5%">Low</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="4%">N</td><td width="4%">Y</td><td width="5%">pitt 88</td><td width="10%">tes ting</td><td width="15%">tes ting</td></tr>
<tr></tr>
</tbody></table><body></html>

Thanks,
Jan 8 '08 #1
2 2453
jhardman
3,406 Recognized Expert Specialist
Below is my html code,

is there any way to print this document in landscape mode wih CSS?

Thanks,
I do not believe that css can be used to designate paper orientation for a user's printer. Sorry.

Jared
Jan 8 '08 #2
astangeland
26 New Member
This page is pretty discouraging: http://css-discuss.incutio .com/?page=PrintStyl esheets. It says that the css landscape property is going away in CSS2, but might be back in CSS3 or something like that.

Anyhow, standards aside the follow works in some browsers. (IE7, Opera, and FF2 I believe, but I haven't tested it in a long time and I can't remember)
Expand|Select|Wrap|Line Numbers
  1. @page { size: landscape }
Hope that helps. Let us know how much success you have with it, after you test in the browsers.
Jan 9 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
21534
by: Myrilath | last post by:
I was just wondering how I should go about printing an html document. I can read it in and print it out as source but I would like to print it as it should display. At the moment I hace been having it scan the source for tags and set formatting based on them. The problem with this is it is long, slow and means I have to manually draw tables and coloured backgrounds. I know I am probably doing it the long hard way but the only nfo I keep...
0
1101
by: Dexter | last post by:
Hello all, I need to configure a page to print in the landscape format. Using ASP.NET or JavaScript. Thanks Dexter
0
1724
by: BlueSky | last post by:
Hi, I want to print in Landscape format from an aspx page (when ever the user chooses print from the browser or a print button on the form). I load aspx controls dynamically on the page. I used the following style sheet with which I was able to print in Landscape mode, if there is no <form> tag on the page. <style type="text/css" media="print"> DIV.page { MARGIN: 10% 0%; WRITING-MODE: tb-rl; HEIGHT: 80% }
3
3895
by: PebblePicker | last post by:
hi all, is it possible to change print format to landscape using javascript/css or anything else which is suppoted in MOZILLA ? I could not find it anywhere.
1
2529
by: nuhura01 | last post by:
I want a printing properties to be set to landscape mode, so that when the user click a print button, it will print in landscape mode automatically. I use this code in the code-behind of the web form to print the page: HttpContext.Current.Response.Write("<script>window.print();</script>") How could I set it to print in landscape mode? Any solution for this?
4
2461
by: sarn555 | last post by:
Dear, I want to print a VB6 form in landscape orientation and it should be done in a running mode. I mean through coding everything must be done at runtime. By default, the Form.PrintForm method prints the form in portrait mode, but I want to print the form in landscape mode. What should I do?
1
1613
Ali Rizwan
by: Ali Rizwan | last post by:
Hi all, How can print data report in landscape mode./ Thanx >> ALI <<
2
2540
Claus Mygind
by: Claus Mygind | last post by:
For my intranet web app we use exclusively FireFox as our browser. I have a report I want to format in the landscape mode and would like to include that code in the print button I display for the user. If it is possible could you please show some sample code?
2
3788
by: dhivyavasya | last post by:
I have to print a web page in landscape mode automatically when print is given. i dont want to go to settings and change the mode manually each time. help is needed
0
9518
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10433
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10212
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10161
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9035
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4112
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2919
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.