Hi,
Can any one help in printing a html table content (dynamically generated which spreads accorss multiple pages ) in landscape by default.
The following code does not work when we have a table with lot of rows which spans accross multiple pages. Nothing shows up in print preview
Can any one help in printing a html table content (dynamically generated which spreads accorss multiple pages ) in landscape by default.
The following code does not work when we have a table with lot of rows which spans accross multiple pages. Nothing shows up in print preview
Code:
<html>
<head>
<object id="factory" viewastext style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="http://localhost/smsx.cab#Version=6,5,439,50">
<param name="template" value="MeadCo://IE7" />
</object>
<title>Example</title>
<style type="text/css" media="print">
div.page
{
writing-mode: tb-rl;
height: 80%;
width : 100%;
margin: 10% 0%;
}
div.page table
{
margin-right: 80pt;
filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation=1);
}
</style>
</head>
<body>
<div class="page">
<table border="1">
<tr><td>A1</td><td>A2</td><td>A3</td></tr>
<tr><td>B1</td><td>B2</td><td>B3</td></tr>
<tr><td>B1</td><td>C2</td><td>c3</td></tr>
<tr><td>B1</td><td>D2</td><td>d3</td></tr>
<tr><td>B1</td><td>E2</td><td>e3</td></tr>
<tr><td>B1</td><td>F2</td><td>F3</td></tr>
<tr><td>B1</td><td>G2</td><td>G3</td></tr>
<tr><td>B1</td><td>H2</td><td>H3</td></tr>
<tr><td>B1</td><td>I2</td><td>I3</td></tr>
<tr><td>B1</td><td>J2</td><td>J3</td></tr>
<tr><td>B1</td><td>K2</td><td>K3</td></tr>
<tr><td>B1</td><td>L2</td><td>L3</td></tr>
<tr><td>B1</td><td>M2</td><td>M3</td></tr>
<tr><td>B1</td><td>N2</td><td>N3</td></tr>
<tr><td>B1</td><td>O2</td><td>O3</td></tr>
<tr><td>B1</td><td>P2</td><td>P3</td></tr>
</table>
</div>
</body>
</html>
Comment