I want to print a specific (form) area of a webpage by clicking the PRINT button. Please give me some idea how can I do this & also how can I take the print on a [ 5' x 3' ] paper, how can I shrink the values. Any idea or live example would b appriciated. Thanks
Here is my code...
Code:
<form>
<table width="690" border="0" cellpadding="3" cellspacing="0">
  <tr>
    <td width="360" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="3" cellspacing="0">
      <tr style="padding-top: 3px;">
        <td width="75" valign="middle"><strong>Cage No. </strong></td>
          <td width="94" valign="middle">0</td>
          <td width="59" valign="middle"><strong>Rack No. </strong></td>
          <td width="114" valign="middle">&nbsp;</td>
        </tr>
      <tr>
        <td valign="middle"><strong>Cage Type</strong> </td>
          <td valign="middle">Sac'd</td>
          <td valign="middle"><strong>Strain</strong></td>
          <td valign="middle">transgenic</td>
        </tr>
      <tr>
        <td height="25" valign="middle"><strong>Project</strong></td>
          <td colspan="3" valign="middle">project1, project </td>
        </tr>
      <tr>
        <td valign="middle"><strong>Source</strong></td>
          <td valign="middle">vendor</td>
          <td valign="middle"><strong>Room</strong></td>
          <td valign="middle">&nbsp;</td>
        </tr>
      <tr>
        <td valign="middle"><strong>PI</strong></td>
          <td colspan="3" valign="middle">lastname 1, firstname 1 </td>
        </tr>
      <tr>
        <td valign="middle"><strong>IACUC</strong></td>
          <td colspan="3" valign="middle"><input name="textfield10" type="text" size="31" /></td>
        </tr>
      <tr>
        <td valign="middle"><strong>Comments</strong></td>
          <td valign="middle">&nbsp;</td>
          <td valign="middle"><strong>Rec'd</strong></td>
          <td valign="middle">&nbsp;</td>
        </tr>
      <tr>
        <td colspan="4" valign="middle"><textarea name="Comments" cols="34" rows="8" id="Comments"></textarea></td>
        </tr>
    </table></td>
    <td width="147" height="3"></td>
    <td width="75"></td>
    <td width="84"></td>
  </tr>
  <tr>
    <td height="229" colspan="3" valign="top"><table width="100%" border="0" cellpadding="3" cellspacing="0">
      <tr>
        <td width="66" valign="middle"><strong>ID</strong></td>
          <td width="81" valign="middle"><strong>Sex</strong></td>
          <td width="87" valign="middle"><strong>DOB</strong></td>
          <td width="66" valign="middle"><strong>TC No. </strong></td>
        </tr>
      <tr>
        <td height="198" colspan="4" valign="top">
		<table width="100%" border="0" cellpadding="3" cellspacing="0" style="border: 1px solid #E3E3E3;">
          <tr>
            <td width="61" valign="middle">1000</td>
                <td width="82" valign="middle">&nbsp;</td>
                <td width="87" valign="middle">10/05/2003</td>
                <td width="62" valign="middle"><input name="textfield" type="text" size="8" maxlength="10" /></td>
              </tr>
          <tr>
            <td valign="middle">1001</td>
                <td valign="middle">&nbsp;</td>
                <td valign="middle">10/05/2003</td>
                <td valign="middle"><input name="textfield2" type="text" size="8" maxlength="10" /></td>
              </tr>
          <tr>
            <td valign="middle">1002</td>
                <td valign="middle">&nbsp;</td>
                <td valign="middle">10/05/2003</td>
                <td valign="middle"><input name="textfield3" type="text" size="8" maxlength="10" /></td>
              </tr>
          <tr>
            <td valign="middle">1003</td>
                <td valign="middle">&nbsp;</td>
                <td valign="middle">10/05/2003</td>
                <td valign="middle"><input name="textfield4" type="text" size="8" maxlength="10" /></td>
              </tr>
          <tr>
            <td valign="middle">1004</td>
                <td valign="middle">&nbsp;</td>
                <td valign="middle">10/05/2003</td>
                <td valign="middle"><input name="textfield5" type="text" size="8" maxlength="10" /></td>
              </tr>
          <tr>
            <td valign="middle">1005</td>
                <td valign="middle">&nbsp;</td>
                <td valign="middle">10/05/2003</td>
                <td valign="middle"><input name="textfield6" type="text" size="8" maxlength="10" /></td>
              </tr>
          <tr>
            <td valign="middle">1006</td>
                <td valign="middle">&nbsp;</td>
                <td valign="middle">10/05/2003</td>
                <td valign="middle"><input name="textfield7" type="text" size="8" maxlength="10" /></td>
              </tr>
          <tr>
            <td valign="middle">1007</td>
                <td valign="middle">&nbsp;</td>
                <td valign="middle">10/05/2003</td>
                <td valign="middle"><input name="textfield8" type="text" size="8" maxlength="10" /></td>
              </tr>
          <tr>
            <td valign="middle">1008</td>
                <td valign="middle">&nbsp;</td>
                <td valign="middle">10/05/2003</td>
                <td valign="middle"><input name="textfield9" type="text" size="8" maxlength="10" /></td>
              </tr>
          
          </table></td>
        </tr>
      <tr>
        <td height="12"></td>
          <td></td>
          <td></td>
          <td></td>
        </tr>
      
    </table></td>
  </tr>
  
  <tr>
    <td height="19" align="center" valign="middle"><strong>Confidential</strong></td>
  <td valign="middle"><strong>Printed</strong></td>
  <td valign="middle">01/01/2006</td>
  <td valign="middle">04:11:17 PM </td>
  </tr>
</table>
</form>