Ver Mensaje Individual
  #13 (permalink)  
Antiguo 15/07/2003, 06:45
papirpo
 
Fecha de Ingreso: febrero-2003
Mensajes: 44
Antigüedad: 22 años
Puntos: 0
A mi no me va, mi impresora es una epson Stylus color 685, mi IE es 5.5, "OS" Windows Millenium, en fin que la idea puede funcionar pero no cómo yo quiero, seguiré investigando a ver si saco algo, respecto a la versión de Netscape he pensado que podría ser algo así:
Código PHP:
var ventana
function imprimir(cual)

if ((
navigator.appName == "Netscape")) 

ventana=window.open('','ventana','resizable=yes,scrollbars=auto,left=0,top=0')
with (ventana.document)
    {
 
open();
 
write('<html>');
 
write('<title>');
 
write('SU NAVEGADOR NO SOPORTA ESTA OPCION');
 
write('</title>');
 
write('<head>');
 
write('</head>');
 
write('<body>');
 
write('<center>');
 
write('SU NAVEGADOR NO SOPORTA ESTA OPCION');
 
write('<br>');
 
write('<a href="javascript:window.imprnsc.print()">IMPRESION MANUAL DEL ARCHIVO</a>');
 
write('<br>');
 
write('<iframe name="imprnsc" src="' cual '" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" scrolling="auto" width="100%" height="100%"></iframe>');
 
write('</center>');
 
write('</body>');
 
write('</html>');
 
close();
    }

else

ventana=window.open('','ventana','resizable=yes,scrollbars=auto,height=150,width=300,left=100,top=50')
with (ventana.document)
    {
 
open();
 
write('<html>');
 
write('<title>');
 
write('IMPRIMIENDO ARCHIVO SOLICITADO');
 
write('</title>');
 
write('<head>');
 
write('<link rel="alternate" media="print" href="' cual '">');
 
write('</head>');
 
write('<body onload="window.print();">');
 
write('<center>');
 
write('IMPRIMIENDO EL ARCHIVO SOLICITADO');
 
write('<br><br>');
 
write('UNA VEZ CONCLUIDO EL PROCESO CIERRE ESTA VENTANA');
 
write('<br><br>');
 
write('<OBJECT id=MyControl type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" codebase="http://activex.microsoft.com/activex/controls/htmlhelp/HHCTRL.ocx#Version=4,72,8252,0"  width=100  height=100><PARAM name="Command" value="Close"><PARAM name="Text" value="Text:Cerrar ventana"></OBJECT></OBJECT>');
 
write('</center>');
 
write('</body>');
 
write('</html>');
 
close();
    }
}

En fin saludos y seguiré al lio.