How to Send Test.zpl file to ZT410.

// Expert user has replied.
a ali tahir 2 years 11 months ago
39 5 0

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();
        }

Please register or login to post a reply

5 Replies

a ali tahir

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.

G Gregory Pawlik

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

a ali tahir

Dear Team,
Greetings

Thanks For reply.

Hashim Ali

On Thu, Jun 23, 2016 at 11:20 PM, Greg Pawlik

V Vedsatx Saddvv

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?

G Gregory Pawlik

Hi Ali,

What are the contents of your TEST.ZPL file?

Greg

CONTACT
Can’t find what you’re looking for?