zpl-ii

Reading status from Zebra Printer

孤者浪人 提交于 2019-11-30 01:48:15
问题 I'm working on a project where we need to use a Zebra Printer for barcode labels. We're using C#, and we're doing OK on the printing side of things, sending raw ZPL strings to the printer (using winspool.drv). However, we also need to read from the printer, and no luck there. We need to get the status from the printer, which is the output to the ZPL command "~HS", so we can tell how many labels are in memory waiting to be printed. The EnumJobs() from winspool.drv only has jobs on the windows

How to send a raw ZPL to zebra printer using C# via USB

China☆狼群 提交于 2019-11-29 07:36:37
I'm a beginner C# programmer. I have a project that requires me to send the raw command to Zebra printer LP 2844 via USB and make it work. I did a lot of research and tried to figure out a way to do that. I'm using the code from http://support.microsoft.com/kb/322091 , but it didn't work. Based on my test, it seems that I have sent commands to the printer, but it didn't respond and print. I have no idea about this. Can someone help me out? I'm using button to send the command directly private void button2_Click(object sender, EventArgs e) { string s = "A50,50,0,2,1,1,N,\"9129302\""; // Allow

How to send a raw ZPL to zebra printer using C# via USB

夙愿已清 提交于 2019-11-28 01:18:30
问题 I'm a beginner C# programmer. I have a project that requires me to send the raw command to Zebra printer LP 2844 via USB and make it work. I did a lot of research and tried to figure out a way to do that. I'm using the code from http://support.microsoft.com/kb/322091, but it didn't work. Based on my test, it seems that I have sent commands to the printer, but it didn't respond and print. I have no idea about this. Can someone help me out? I'm using button to send the command directly private

Print preview ZPL II commands using .NET WinForm before sending it to Zebra printer

陌路散爱 提交于 2019-11-27 11:57:54
I have an .NET Windows application that prints commands to Zebra printer using ZPL II or EPL2. Is there any way to print preview the data in a form before printing it directly from Zebra printer? Have a look at the Labelary web service , which allows you to convert ZPL to an image programmatically. Just build a URL containing the ZPL that you want to render, get the image back from the web server, and show the image to the user from within your application. string zpl = "YOUR ZPL HERE"; string url = "http://api.labelary.com/v1/printers/8dpmm/labels/4x6/0/" + zpl; using (WebClient client = new

Unicode characters on ZPL printer

痞子三分冷 提交于 2019-11-26 22:12:07
I have the task of re-designing a system to print shipping labels, using a networked Zebra GK420T. I have been able to send ZPL print jobs to it perfectly fine, but I cannot seem to get it to print unicode characters, such as cyrillic letters. I have downloaded the lucida sans unicode font to the printer using the Seagull Scientific drivers and I am using the following ZPL code to test: ^XA ^LH100,150 ^CWT,E:TT0003M_.FNT ^CFT,30,30 ^CI28 ^FT0,0^FDTesting 1 2 3^FS ^FT0,50^FDДо свидания^FS ^FT0,100^B3^FDAAA001^FS ^XZ It will print the 'Testing 1 2 3' and the barcode, but it leaves a blank space

.NET code to send ZPL to Zebra printers

大城市里の小女人 提交于 2019-11-26 19:30:46
Is there a way to send ZPL (Zebra Programming Language) to a printer in .NET? I have the code to do this in Delphi, but it is not pretty and I would rather not try to recreate it in .NET as it is. Darin Dimitrov Take a look at this thread: Print ZPL codes to ZEBRA printer using PrintDocument class . Specifically the OP pick this function from the answers to the thread: [DllImport("kernel32.dll", SetLastError = true)] static extern SafeFileHandle CreateFile(string lpFileName, FileAccess dwDesiredAccess, uint dwShareMode, IntPtr lpSecurityAttributes, FileMode dwCreationDisposition, uint

Print preview ZPL II commands using .NET WinForm before sending it to Zebra printer

夙愿已清 提交于 2019-11-26 15:49:11
问题 I have an .NET Windows application that prints commands to Zebra printer using ZPL II or EPL2. Is there any way to print preview the data in a form before printing it directly from Zebra printer? 回答1: Have a look at the Labelary web service, which allows you to convert ZPL to an image programmatically. Just build a URL containing the ZPL that you want to render, get the image back from the web server, and show the image to the user from within your application. string zpl = "YOUR ZPL HERE";

Unicode characters on ZPL printer

扶醉桌前 提交于 2019-11-26 09:08:48
问题 I have the task of re-designing a system to print shipping labels, using a networked Zebra GK420T. I have been able to send ZPL print jobs to it perfectly fine, but I cannot seem to get it to print unicode characters, such as cyrillic letters. I have downloaded the lucida sans unicode font to the printer using the Seagull Scientific drivers and I am using the following ZPL code to test: ^XA ^LH100,150 ^CWT,E:TT0003M_.FNT ^CFT,30,30 ^CI28 ^FT0,0^FDTesting 1 2 3^FS ^FT0,50^FDДо свидания^FS ^FT0

.NET code to send ZPL to Zebra printers

牧云@^-^@ 提交于 2019-11-26 06:59:05
问题 Is there a way to send ZPL (Zebra Programming Language) to a printer in .NET? I have the code to do this in Delphi, but it is not pretty and I would rather not try to recreate it in .NET as it is. 回答1: Take a look at this thread: Print ZPL codes to ZEBRA printer using PrintDocument class. Specifically the OP pick this function from the answers to the thread: [DllImport("kernel32.dll", SetLastError = true)] static extern SafeFileHandle CreateFile(string lpFileName, FileAccess dwDesiredAccess,