Hello,
PB 2017 R3, Postgresql 11.1
Need to print a label report in a Datamax barcode printer. Different label sizes are possible. Tried with
For 3 labels in a row, single label size 3 x 2 cm
1. Created one label dw, retrieved required data. tried with command dw_print(). NOTHING PRINTS.
2. tried with PrintOpen(), PrintSend(), PrintDatawindow(), PrintClose() commands. Code
Job = PrintOpen()
PrintSend(job, "
PrintSend(job, "M0500")
PrintSend(job, "KcLW0355;")
PrintSend(job, "O0220")
PrintSend(job, "d")
PrintSend(job, "
PrintSend(job, "D11")
PrintSend(job, "ySPM")
PrintSend(job, "A2")
PrintDataWindow(Job, dw_1)
//PrintSend(job, 'Siva')
// Send the job to the printer or spooler.
PrintClose(Job)
Code got from bartender software. NOTHING PRINTS.
3. Tried the full code, from bartender, including printing all required values
Long job
job = PrintOpen()
PrintSend(job, "
PrintSend(job, "M0500")
PrintSend(job, "KcLW0355;")
PrintSend(job, "O0220")
PrintSend(job, "d")
PrintSend(job, "
PrintSend(job, "D11")
PrintSend(job, "ySPM")
PrintSend(job, "A2")
PrintSend(job, "1911A12005400141Simple")
PrintSend(job, "1911A12005401322Sample")
PrintSend(job, "1911A12005402503Crimple")
PrintSend(job, "1W1D22000003100382,LA,12345678")
PrintSend(job, "1911A060013003112345678")
PrintSend(job, "1W1D22000003101562,LA,12345678")
PrintSend(job, "1911A060013014912345678")
PrintSend(job, "1W1D22000003102742,LA,12345678")
PrintSend(job, "1911A060013026712345678")
PrintSend(job, "Q0001")
PrintSend(job, "E")
PrintSend(job, "
PrintSend(job, "D11")
PrintSend(job, "ySPM")
PrintSend(job, "A2")
PrintSend(job, "1911A1200540014Sample Text")
PrintSend(job, "1W1D22000003100382,LA,12345678")
PrintSend(job, "1911A060013003112345678")
PrintSend(job, "1911A1200540132Sample Text")
PrintSend(job, "1W1D22000003101562,LA,12345678")
PrintSend(job, "1911A060013014912345678") */
PrintSend(job, "Q0001")
PrintSend(job, "E")
PrintSend(job, "
// Send the job to the printer or spooler.
PrintClose(Job)
It prints the first column value, Simple
then prints the next values 1911A12005401322Sample continuously.
Would like to know what to do to print a label dw properly in Datamax barcode printer from powerbuilder.
* PrintSend command has been marked as Obsolete in Powerbuilder 2017 R3.
Happiness Always
BKR Sivaprakash
2. If it's expecting ANSI, how to (print)send in ANSI ?
How to print a dw in ANSI ?
Blob lblb_data
lblb_data = Blob ( "1911A12005400141Simple", EncodingANSI! )
PrintSend ( job, String ( lblb_data, EncodingANSI! )