[RW420 - ZQ520] Image print problem with CPCL language

M Marco Rinaldi 3 years 7 months ago
83 1 0

For our application we use the Zebra RW420 model with the Zebra Android SDK, which allowed us to print an image using the CPCL language with the PCX command.
We store this image on the printer because when we print a document this image could be present more than once on it.
Using the CPCL language we call the image through the PCX command in this way:
 
PCX [X] [Y]  !

Please Register or Login to post a reply

1 Replies

E Efkan YILMAZ

Hi Marco,
You have two options, Continue to use CPCL, or switch to ZPL.
CPCL:
create your ZebraPrinterLinkOs using the ZebraPrinterFactory.getLinkOsPrinter(connection, PrinterLanguage.CPCL)
Then, you should be able to use the rest of your code normally.

ZPL:
Create your ZebraPrinterLinkOs the way you have been, or use ZebraPrinterFactory.getLinkOsPrinter(connection, PrinterLanguage.ZPL)
Store the image using the ZebraPrinterLinkOs.storeImage("E:NameFile", imagepath, -1, -1) function
Recall and print the image using the string:
^XA^XGE:NameFile^XZ

CONTACT
Can’t find what you’re looking for?