Whenever I ask to do a label print, it generates t...
# suitescript
s
Whenever I ask to do a label print, it generates this error. Can anyone help me with this? I have already installed the JSPrint Client App on the machine, but the Manager keeps bringing me this warning: JSPrintManager (JSPM) is not installed or not running! Download JSPM Client App from https://neodynamic.com/downloads/jspm
m
What type of label are you printing? TSPL? Generally, one has to write a small script to do the printing, but I've found it isn't awfully hard.
s
Hi @Michael Pope I'm trying to print EPL type
m
That should be fine too. If you look in SuiteAnswers for Answer id '28651' which is 'Test UNC Path Used in Label.bat file to Determine if NetSuite Can Print the Integrated Shipping Label to the Shared Thermal Printer', your going to see a small batch script. This is largely what you need in order to send something to the printer.
In essence, you first use
Net use LPT2: PRINTERPATH
to set up the print to have what called a 'net use name'.
Then you use
Copy %1 LPT2
to send the file to the actual printer.
Finally, you use
Net use LPT2: /Delete
in order to delete the 'net use name' you set up.
There's a few more steps involved you'll probably want to set up. For example, you'll want to save this to a batch script and set the batch script as the default 'Open With...' for this particular file extension. This means people can download the label, and then they only need to click it once to send it to the printer.
If you were really ambitious, you could write a daemon that watched the \Downloads directory using something like
pm2
to do this automatically so they don't have to click, but in my experience, this is a lot more involved, and so simple is better.