S4M won't print with EPL driver

Mar 24, 2010 at 2:55 PM
Edited Mar 24, 2010 at 3:42 PM

The printer prints ok with a ZPL driver but I can't get it to print with EPL, therefore this library doesn't work for me.

Anyone have any ideas?

Thanks

 

What's odd is that this doesn't do anything:::

StringBuilder sb = new StringBuilder();

            sb.Append(Environment.NewLine);
            sb.Append("N" + Environment.NewLine);
            sb.Append("Q609" + Environment.NewLine);
            sb.Append("Q203,26" + Environment.NewLine);
            sb.Append("A253,26,0,3,1,1,N,\"SKU 6205518 MFG 6354\"" + Environment.NewLine);
            sb.Append("P1,1" + Environment.NewLine);


            byte[] sendBytes = Encoding.ASCII.GetBytes(sb.ToString());

            TcpClient printDevice = new TcpClient("172.16.0.10", 9100);
            NetworkStream printStream = printDevice.GetStream();
            
            printStream.Write(sendBytes, 0, sb.ToString().Length);

            printStream.Flush();
            printStream.Close();

Coordinator
Mar 24, 2010 at 3:49 PM

Hi!

I've not looked at the ZPL programming language. According to the S4M manual, it won't respond to EPL then.

Depending on how your printer was ordered, it came from the factory with firmware that
operates in or allows you to use certain commands for one of the following printer languages:
• Zebra Programming Language (ZPL®)
• Eltron® Programming Language (EPL™)
• Datamax® Programming Language (APL-D™)
• Intermec® Printer Language (APL-I™)

I'd suggest you look at the ZPL programming guide as it looks like they use completely different commands to print (commands start with a carat [^] symbol). This library will not support ZPL.

 

.

Mar 24, 2010 at 4:01 PM

That makes sense.  Let me see how different ZPL is.

Thanks.