Print file on server

Hi there!

Ignition 7.9.2

I am trying to allow a user to click a button that will print a file on our server to their local printer. Ideally, I would like to allow the user to be able to use the regular file dialog in order to print the file. How can I do this?

I know that the PDFViewer component has this function built in, but this component incorrectly formats my PDF. I have already contacted Ignition about this issue with formatting and they said they would have a fix by 7.9.5. Until then, I need a workaround.

Does system.print.createPrintJob do what you need?

Can system.print.createPrintJob print a PDF, using the file and not the PDF Viewer?

Perhaps you can put the pdf in a network share on the server, and then use a subprocess to open the PDF in the standard PDF reader on the clients.

See on how to spawn external processes

1 Like