CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004
    Posts
    1

    printing landsace

    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=
    'progidXImageTransform.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>

  2. #2
    Join Date
    Jun 2003
    Location
    Sydney
    Posts
    109

    Re: printing landsace

    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.
    </VANNY>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured