- Sivaprakash BKR
- PowerBuilder
- Thursday, 7 March 2019 07:44 AM UTC
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, "n")
PrintSend(job, "M0500")
PrintSend(job, "KcLW0355;")
PrintSend(job, "O0220")
PrintSend(job, "d")
PrintSend(job, "L")
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, "n")
PrintSend(job, "M0500")
PrintSend(job, "KcLW0355;")
PrintSend(job, "O0220")
PrintSend(job, "d")
PrintSend(job, "L")
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, "L")
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
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.