Ver Mensaje Individual
  #11 (permalink)  
Antiguo 11/08/2011, 14:53
Avatar de fernandaYO
fernandaYO
 
Fecha de Ingreso: mayo-2011
Ubicación: Medellin
Mensajes: 166
Antigüedad: 12 años, 11 meses
Puntos: 4
Respuesta: Margenes en 0 para imprimir

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..
__________________
Umm, infraccion :(//