Skip to content

How to know which device supports Zpl or CPCL? #18

Description

@MohsinIkram-Auxilium

Hi,
I have both Zebra Printing Devices which support ZPL and CPCL Languages.
So I want to distinguish between both devices.
I have reviewed your code, you are writing this in everywhere in your code -> ZebraPrinterFactory.getInstance(printerConnection)
If I define printer with this line -> printer = ZebraPrinterFactory.getInstance(printerConnection)
It always give me ZPL language.
But if I write this line -> printer = ZebraPrinterFactory.getInstance(PrinterLanguage.CPCL,printerConnection)
It always return me CPCL language.
Kind give me best answer. I'm looking for your response.
Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions