Código:
<script>
function printPantalla()
{
document.getElementById('profo').style.marginRight = "0";
document.getElementById('profo').style.marginTop = "0";
document.getElementById('profo').style.marginLeft = "0";
document.getElementById('profo').style.marginBottom = "0";
document.getElementById('imprimir').style.display = "none";
document.getElementById('volver').style.display = "none";
window.print();
}
</script>
Código HTML:
<body id="profo">
<table width="399" border="0" align="center">
<tr>
<td width="175" align="center"><form id="name" name="name" method="post" action="/bonco/factura_pro/index1.php">
<input type="submit" name="volver" id="volver" value="Nueva Consulta"style="BORDER: rgb(85,0,85) 1px inset; FONT-SIZE: 10pt; FONT-FAMILY: Verdana;
BACKGROUND-COLOR: rgb(255,236,255)"/>
</form> </td>
<td width="208" align="center"><span class="Estilo1"><form id="form2" name="form1" method="post" value="Imprimir" onclick="printPantalla();">
<input id="imprimir" name="imprimir" type="button"style="BORDER: rgb(85,0,85) 1px inset; FONT-SIZE: 10pt; FONT-FAMILY: Verdana;
BACKGROUND-COLOR: rgb(255,236,255)" value="Imprimir"/>
</form>
</span></td>
</tr>
</table>
Claro, supongo que hay errores muchos, pero no los veo..