Ver Mensaje Individual
  #6 (permalink)  
Antiguo 08/07/2003, 14:44
Avatar de Kaopectate
Kaopectate
Colaborador
 
Fecha de Ingreso: diciembre-2001
Ubicación: Curaçao (Antillas Holandesas)
Mensajes: 3.179
Antigüedad: 23 años, 3 meses
Puntos: 38
Probando abrir e imprimir un html:

ppp.htm
Código PHP:
<html>
 <
head>
  <
script language="JavaScript">
   function 
openToPrint(theURL,winName,features){
    var 
oWnd open(theURL,winName,features);
    
oWnd.print();
   }
  
</script>
 </head>
 <body>
  <form>
    <input type="button" name="cmdImprimir" value="Imprimir" onclick="openToPrint('pppp.htm','','')">
  </form>
 </body>
</html> 
pppp.htm
Código PHP:
<html>
 <
head>
 </
head>
 <
body>
  <
form>
    
Hola
  
</form>
 </
body>
</
html
Pruébalo, a mi me funciona.

Saludos.