How to Send Test.zpl file to ZT410.

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

        }

Gregory Pawlik
Hi Ali,What are the contents

Hi Ali,

What are the contents of your TEST.ZPL file?

Greg

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Hi Ali, How have you set up

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?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


ali tahir
Here is the content of test

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.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Gregory Pawlik
Ali,Thank you for sharing

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

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


ali tahir
Dear Team,GreetingsThanks For

Dear Team,

Greetings

Thanks For reply.

Hashim Ali

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

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments