Hi Kirk,

I use launch external process and the "lpr" command on both Mac and Windows.

For Mac it is built in.  On windows you need to go to the control panel
(win7 and up) or settings (win10) and look for "LPR Port Monitor" in the
"turn windows features on or off" section.  (If you have windows pro, it's
not an option for Windows Home)

Depending on the network.... you could just make sure the lpr command line
is installed on the server and have all the printers setup on the server. 
Then either have the client / web interface choose a printer or have a
default based on the machine requesting the PDF to be printed.

Something like this should work right out of the box on Mac.  Windows it
changes only slightly based on the path of the PDF.

You can get the a $printerName to use from the command PRINTERS LIST.

LAUNCH EXTERNAL PROCESS("lpr -P "+$printerName+" "+Replace string(Convert
path system to POSIX($pathToPDF);" ";"\\ "))

- Matt




--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to