HOW-TO send a longchar to a printer?

Posted by OctavioOlguin on 13-Jan-2016 18:37

I have a routine on appserver, that builds a barcode program (zebra's ZPL commands) needed to print a label.

on client side I need to send to a barcode printer defined in text-only style.

I've printer 5.5 millions labels on a client / server station.  All I had to do was to:

OUTPUT TO PRINTER VALUE(myPRINTER).   //myPrinter is something like "\\station1\labelprtr"
PUT UNFORMATTED ....blah blah blah
OUTPUT CLOSE.
// it is oversimplyfied the stuff I do to get the label, but this is a perfectly shaped working snippet


The problem is that I can't do it anymore:
now that I'm not next to the database, I got the string that make the label on a LONGCHAR from the routine.

OUTPUT TO value(myprinter).
PUT UNFORMATTED lcLabel.  //longchar
OUTPUT CLOSE.

I can copy-lob longchar to a file on disk and then copy that file to printer, but.. why wait some more milliseconds?
....
Any help will be very appreciated

P.S: please forgive the mess with the syntaxhighlighter

All Replies

Posted by Simon L. Prinsloo on 13-Jan-2016 22:48

Did you try to COPY-LOB directly to the device?

COPY-LOB lcLabel TO FILE "\\station1\labelprtr".

Unfortunately I am not currently able to test that.

Posted by Brian K. Maher on 14-Jan-2016 04:42

Octavio,
 
If this code is running on an AppServer on Windows be sure that you are not starting the AdminService using the default "Local System" account.  This account doesn't have access to network resources.
 
Brian

This thread is closed