Print ZPL file in windows 10

Hello guys,

I`m using a Zebra printer and i have to print the barcodes via the ZPL engine , so far on mac is simple , i just create a file and then i use the shell to do the job like lpr -P gc420t -l print.epl how can i do that in windows ?

Is there a way to print the data via the command line ? or somebody has a better idea how to use that ?

Thanks

http://www.computerhope.com/printhlp.htm

Thanks but unfortunately i have a usb printer and it does not work it seems with /d:USB001, any other ideas ?

And i forgot to mention, the os is Windows 10

Why don’t you contact Zebra to ask what they do ?

Can’t you rewrite the zpl files as straight graphics calls and use OpenPrinter and Graphics?

Hello Tim, Well that was the second option in the case where i have a code to generate the QR code in Windows offline without any online thing.

So far i was using ZPL or EPL2 just because all it`s inside the printer and it handles all, do you know any code or plugins to generate QR codes for windows ?

Thanks .

Hello Aurelian,
You can add a generic printer (connected to the USB) , share that printer. Then print to a file and copy the file to that printer. (Don’t forget to include the computername . E.g. copy test.txt > \\mycomputer\zebra where zebra is the name of the generic printer.

I believe MonkeyBread can produce QR codes.

Another option would be to declare into winspool.drv and use

OpenPrinter
StartDocPrinter
WritePrinter
EndDocPrinter
ClosePrinter

Read the ZPL file into a memoryblock and write it directly to the printer.

What type of Zebra printer do you have ?

It might support ActiveX see Link: http://www.bluestarinc.com/techsupport/ZEBRA/ZEBRA_ACTIVE_X/ZebraPrint_ActiveX.doc

A different example shown here with use of Dymo Label printer: https://forum.xojo.com/33645-dymo-labelwriter-sdk-problem

[quote=281697:@John Hansen]What type of Zebra printer do you have ?

It might support ActiveX see Link: http://www.bluestarinc.com/techsupport/ZEBRA/ZEBRA_ACTIVE_X/ZebraPrint_ActiveX.doc

A different example shown here with use of Dymo Label printer: https://forum.xojo.com/33645-dymo-labelwriter-sdk-problem[/quote]

It`s a GC420t model

Let`s say that i could find a usb serial adapter and for the windows version i can use the serial port but i have no idea how to doit, should i try ZPL or EPL .

I`ll try to do some tests and let you know the results.

Thanks guys.

You might have look at this example: How to use Generic/Text ZPL pass through. https://www.youtube.com/watch?v=DMEo8rz-zo0

It’s shown for XP but I presume not much has changed in Winsows 10.

Or this link: http://stackoverflow.com/questions/4442122/send-raw-zpl-to-zebra-printer-via-usb

[quote=281993:@John Hansen]You might have look at this example: How to use Generic/Text ZPL pass through. https://www.youtube.com/watch?v=DMEo8rz-zo0

It’s shown for XP but I presume not much has changed in Winsows 10.

Or this link: http://stackoverflow.com/questions/4442122/send-raw-zpl-to-zebra-printer-via-usb[/quote]
That did the job thanks a lot .

One more simple solution it work for me

  1. Add Generice Text Printer
  2. Share It
  3. create a text file with zpl commands
  4. In Command prompt run : copy zpl_file.txt \\127.0.0.1\zebra

For this kind of job I once wrote the WindowsAddPrintJobMBS class.
If you use my logins maybe it helps you here.

See
https://www.monkeybreadsoftware.net/class-windowsaddprintjobmbs.shtml