Quick Tip: Printing from ColdFusion

What you need to do: print something to a Windows printer from your ColdFusion application on Linux. How to do it: use the samba tool suite to execute a print command, sending a file to a printer. I use a small form to collect the data that I need to print. The form results are written to a file and then the file is sent to the printer using cfexecute. <cfexecute name=”/usr/bin/smbclient” arguments=” //print_server_ip/virtual_printer_folder my_password […]