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
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.