Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/09/2019, 09:02
tuadmin
 
Fecha de Ingreso: abril-2006
Mensajes: 583
Antigüedad: 18 años
Puntos: 120
Respuesta: exec("lpr archivo.txt") con PHP 7 + Windows 10?

Cita:
Iniciado por augusto_jaramil Ver Mensaje
Saludos comunidad,

Sobre Linux se envía a imprimir un archivo mediante exec("lpr archivo.txt"). Mi pregunta es: cuál es el comando correspondiente para Windows 10 desde PHP 7 y cuál librería es necesaria (si se requiere)?

Muchas gracias de antemano por su ayuda

Cordial saludo
antes que nada debes de instalar o habilitar el ejecutable LPR.exe


Código HTML:
Use Server Manager to install the LPR Port Monitor feature.

The LPR.EXE executable will be installed in the %windir%\system32 folder.

Line Printer Remote (LPR) Port Monitor enables the computer to print to printers that are shared using any Line Printer Daemon (LPD) service. (LPD service is commonly used by UNIX-based computers and printer-sharing devices.)
una vez instalado el programa no deberia darte problemas
__________________
Mis aportes te ayudaron??, te hicieron ahorrar valiosos tiempo??, si quieres puedes agradecerme con un Gracias o con una donacion
https://paypal.com/pools/c/8lmNLmWnG9