Here is the C# Code to send the Test.zpl file to ZT410. when i execute it flash data light once and nothing print. My codes are like this,
private void button1_Click(object sender, EventArgs e)
{
System.IO.StreamReader filetoprint;
filetoprint = new System.IO.StreamReader(@"D:\RFID CSharp Project\PrintFileToPrinter\TEST.ZPL");
printDocument1.Print();
filetoprint.Close();
}
How to Send Test.zpl file to ZT410.// Expert user has replied. |
5 Replies
Here is the content of test.ZPL file.
^XA
^RS8
^RFW,H
^FD44A5C000708810927D000200
^FS
^FO300,70
^BY1
^BCN,40,N,N,50,N
^FD00728499
^FS
^FO300,115
^ADN,5,5
^FD131015
^FS
^FO300,50
^ADN,5,5
^FD00728499
^FS
^FO95,50
^ADN,5,5
^FDWT:9.88
^FS
^FO95,70
^ADN,5,5
^FDIT:NKINSIR21
^FS
^FO95,90
^ADN,5,5
^FD27.00
^FS
^FO95,110
^ADN,5,5
^FD875
^FS
^FO485,80
^ADN,5,5
^FDHashimAli
^FS
^XZ
I install the Zebra ZT410 driver on the Windows 10 32 bits. and paper size for the label.
Ali,
Thank you for sharing your ZPL.
There doesn’t appear to be any errors in it.
With that said, I believe that you would have to use Win32 spooler functions to send the raw data from your ZPL file through the printer driver.
This Microsoft KB article explains how to create a sample C# project that will allow you to select your TEST.ZPL file and send its raw contents through the printer driver.
Hope this helps.
Greg
Dear Team,
Greetings
Thanks For reply.
Hashim Ali
On Thu, Jun 23, 2016 at 11:20 PM, Greg Pawlik
Hi Ali, How have you set up the printDocument1 instance? I'm assuming this is on a PC, so what printer driver are you using and how is it set up?
Hi Ali,
What are the contents of your TEST.ZPL file?
Greg