Click to See Complete Forum and Search --> : printing landsace


chinny1234
December 1st, 2004, 07:14 AM
please help me to solve my issue:

i've a jsp page which has tables&images also. I need to take the print in landscape. I am succufully taking it in landscape.. but the problem is im able to take the print for only one page.. if the my page data becomes more then one page then the top data is missing and only bottom data wich is fit to one page is printing. rest of the data is not printing. ultimatly it is printing only one page.

how can i take my complete data which has more than one page.

here im sending my code.. please give me the solution. Thanks.

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="oDiv1.style.filter=
'progid:DXImageTransform.Microsoft.BasicImage(rotation=1)';window.print();">

<DIV ID="oDiv1" STYLE="position:absolute;">
<table border="1" cellspacing="0" cellpadding="0" width="100%" >
<tr>
<td class="toptd" width="100%"><img src="../images/topLogoSceneBan.jpg" width="400" height="50"></td>
</tr>
</table>

<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="98%">
<html:form action="/newOrder" >
--- so on...
--- so on...

--- so on...

</tr>
</table>
</DIV>

Vanny
December 2nd, 2004, 07:59 PM
I'd like to see your solution to this, I actually gave up on HTML reports and got a PDF tool to do my printing because it was just more effecient. allows me to do headers and footers on each page, automatically remove the url where it was printed from. and doesnt cut information in half like HTML.

Also what is your browser compatability with your current code? Does it work in IE and netscape?

I wish you could just pass the printer a tag like ?layout=landscape to do it for you.