printingnetsuitesuitescriptsuitescript2.0

Suitescript Automatically Print PDF


I have a suitelet that allows the user to scan an item's UPC code to bring up a label for that item. I would like the user to be able to scan the item and choose the "PRINT" button and have that label print directly to his hand held mobile printer.

Is there any way to do this?

I've managed to get the label to open up within the print window using inline HTML. However, this is an extra step for my user and I would like it to be printed automatically.


Solution

  • I created a simple node.js server (using Express) to receive an HTTP POST with the name of the printer to use, and a Base64-encoded PDF to print. You can print to any printer the computer running node.js can see.

    It's not complicated, you can take a look at the code here: https://github.com/TexasSwede/netsuite-print