Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/06/2012, 07:25
serbarmax
 
Fecha de Ingreso: enero-2003
Mensajes: 120
Antigüedad: 21 años, 4 meses
Puntos: 0
Respuesta: Imprimir iframe firefox sobre matricial

Dejo el código...

Código:
<script> 
window.onload=function(){
  setTimeout("printFrame(window.frames['iframeTexto'])", 2000)
}
function printFrame(iframeT){ 
iframeT = document.getElementById("iframeTexto"); // comentada
try{ 
     window.frames[0].focus(); 
     window.frames[0].print(); 
//     iframeT.print();  // comentada.
} 
 catch(e){ 
	 alert(e.message); 
 } 
 cerrar();
}	

function cerrar(){
window.opener = null;
window.close();
return false;
}
</script>
Código:
<body >
Imprimiendo... espere.<br /><br /><br />
 <iframe width="200" height="600" id="iframeTexto" src="cupon/<?PHP echo $usr.".txt"; ?>"></iframe>  
<!-- <iframe width="1" height="1" id="iframeTexto" src="usuario/prueba.txt"></iframe> -->
</body>
__________________
Sergio.