Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
I am Using a GC420T Zebra label printer for label sticker printing.
Had tried various codes in ZPL, ZPL2 & EPL programming languages to cut the paper after printing.
It Seems None of them is working.Plz Share code for paper cut in any of the above languages
used codes are

^MMC,Y
^CN
Posted
Updated 7-Nov-13 7:51am
v2
Comments
Sergey Alexandrovich Kryukov 6-Nov-13 14:29pm    
Not enough information, but cutting printers is just a great feature. I always wanted it...
—SA
george4986 7-Nov-13 19:27pm    
I am printing label sticker using the print document class and e.Graphics.DrawImage() for barcode print and graphics.DrawString() for others.

For label cut i send ZPL code to printer using microsofts RawPrinterHelper classes SendStringToPrinter() function

i used string builder like

stringbuilder sb=new stringbuilder();
sb.appendline("^MMC,Y");
SendStringToPrinter( PrinterName, sb.tostring() );

but it aint working
tried these sequences also
1) ^XA^MMC,Y^XZ
2) ^XA^MMK,Y^CN1^PN0^XZ

None is working plz help .
my printer link is this http://www.zebra.com/id/zebra/na/en/index/barcode-printers/gc420t.html

#1 AFAIK, there's any Zebra printer which model is GC420GT! It's important to know the correct model of your Zebra (read on)

#2 In ZPL, the ^MMC,Y command should be sufficient and placed at the beginning of your label format. I see you also have specified ^CN but from ZPL ref this commands clearly states this:

Important • This command works only when the printer is in Print Mode Kiosk (^MMk).
If the printer is not in Print Mode Kiosk, then using this command has no effect. See ^MM
on page 305.
 
Share this answer
 
v2
Comments
george4986 7-Nov-13 13:50pm    
Am sorry Marc its GC420T NOT GC420GT.
I am printing label sticker using the print document class and e.Graphics.DrawImage() for barcode print and graphics.DrawString() for others.

For label cut i send ZPL code to printer using microsofts RawPrinterHelper classes SendStringToPrinter() function

i used string builder like

stringbuilder sb=new stringbuilder();
sb.appendline("^MMC,Y");
SendStringToPrinter( PrinterName, sb.tostring() );

but it aint working
tried these sequences also
1) ^XA^MMC,Y^XZ
2) ^XA^MMK,Y^CN1^PN0^XZ

None is working plz help .
my printer link is this http://www.zebra.com/id/zebra/na/en/index/barcode-printers/gc420t.html
Marc Gabrie 8-Nov-13 6:38am    
If you are using System.Drawing for printing, then you are sending output printing jobs through the Windows driver for GC420T. If you have installed ZDesigner driver, then select Printing Preferences and under Advanced Setup tab you have the option to enable the Cutter under Operation Mode. Give it a try.
george4986 8-Nov-13 9:46am    
i had tried that option , it doesnt work . I had specified the cutting position also its Not working . May be its because i use zpl code just for paper cut only. Rest of the printing i use print doc, dont know what i am missing.thanks 4 ur feedback marc.
Have a look at the specification: http://www.servopack.de/support/zebra/EPL2_Manual.pdf[^]
Supposing you have the cutter, a simple standalone C should do it.
Is the rest of your code working? If not have a look here: http://nicholas.piasecki.name/blog/2009/03/sending-raw-epl2-directly-to-a-zebra-lp2844-via-c/[^].
 
Share this answer
 
Comments
george4986 7-Nov-13 19:29pm    
rest of my code is working after printing i use below code
stringbuilder sb=new stringbuilder();
sb.appendline("^MMC,Y");
SendStringToPrinter( PrinterName, sb.tostring() );

but it aint working
tried these sequences also
1) ^XA^MMC,Y^XZ
2) ^XA^MMK,Y^CN1^PN0^XZ

None is working plz help .
Zoltán Zörgő 8-Nov-13 1:42am    
I have read your comment to the other answer. It might be a problem that you are mixing the windows GDI+ printing with the raw approach. I don't know how complex your drawing is, but you would get much better performance if you would use the native mode for the whole label. And you would get a complete control - and cutting would also work. In the article I have posted there is a link to an application "Zebra Firmware Downloader", that can be used to test the device. In short: try the raw-only approach, by making some label and cutting the paper just by low level code, without using the windows printer. If you can print, you will be able to cut also.
I suggest a second investigation approach too: redirect the windows printer to a file and see what your program is writing to it. Use some Zebra program to make a similar label (including cutting) and try to direct the commands to file. Compare them and see what you are missing. Portmon can help you (if it has a virtual serial port). If it is a legacy USB device, than it might be more problematic, I don't know of any free tool (this is commertial, but might worth the price: USBSpy).
Still, if this approach looks to complicated or expensive in your case, I would suggest you to forget GDI+ printing. Of course if you want fancy graphics, this can be some harder work.
george4986 8-Nov-13 2:40am    
i used print document to make application compatable for non zebra printers .paper cut is a feature i want to provide client if he use zebra printers.i am working on it now will tell u if i got any thanks for ur feedback

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900