css| Printing | control using CSS to control printing
Put it here, it's a backup.
<style>
@media print{
INPUT {Display:none}
}
</style>
<table border= "0" style= "font-size:9pt;" width= "300px" align= "Center" >
<thead style= "Display:table-header-group;font-weight:bold" >
<TR><TD colspan= "2" align= "center" style= "font-weight:bold;border:3px double red" > every page of the table header </TD> </TR>
</THEAD>
<tbody style= "Text-align:center" ">
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<tr style= "page-break-after:always;" ><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<tr style= "page-break-after:always;" ><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<TR><TD> table Contents </TD><TD> Table Contents </TD></TR>
<tr style= "page-break-after:always;" ><TD> table Contents </TD><TD> Table Contents </TD></TR>
</TBODY>
<tfoot style= "Display:table-footer-group;font-weight:bold" >
<TR>
<TD colspan= "2" align= "center" style= "font-weight:bold;border:3px double Blue" > every page has footer </TD>
</TR>
</TFOOT>
</TABLE>
<input Type=button value= "print" onclick= "Window.print ()" >