We have a database that stores part numbers and work instructions for these parts. All work instructions are saved as Microsoft Word doc or docx.
Functionality a web page is shown, a user selects the part they are working on from a drop down and the clicks the print button. We query the database for the correct document and send it to the local OS print function.
Is there a way to send a command through Javascript/HTML/PHP to print the document without opening the document in the browser?
Edit for clarity. We are running a web (http) application. The files for the worksheets that need printed are on a local server inside the web application, and the person will be using the http web application via a local intranet workstation. All the printers are IP printers and networked via the local server.
In a local database (accessed via the web application) I store the path to the worksheet that needs printed. So using html/php a user select the part they are working on, then clicks a html print button. When they click the print button I need to query the database to get the document path and name, and send it to printer. I don't want the user to have to interact with a pop up, I just want the document sent to the local workstations default printer.