简体   繁体   中英

Zebra QL 320 prints ANSI characters?

Device: MC 9090
OS: Windows Mobile 5
Printer: QL 320 connected via serial port to MC 9090
I am sending ZPL to the serial port, but the printer prints ANSI characters only on the 3x2 label. No barcode or no text

Any help will be appreciated.

NOTE: I want to install special printer drivers. 安装专用的打印机驱动程序。

Here is my code:

StringBuilder sb = new StringBuilder();
sb.AppendLine("^XA");
sb.AppendLine("^FO100,100^BY3");
sb.AppendLine("^BCN,100,Y,N,N");
sb.AppendLine("^FD123456^FS");
sb.AppendLine("^XZ");
string DataToPrint = sb.ToString();
SerialPort S = new SerialPort("COM1", 9600, Parity.None, 8, StopBits.One);
try
{
    S.Open();
    S.Write(DataToPrint);
    S.Close();
}
catch (Exception Ex)
{
    MessageBox.Show(Ex.Message);
}

Not sure what you mean by ANSI characters, but a few things to check are: If by serial connection you mean a physical (not a virtual ) serial connection, check the baud rate on printer and make sure the baud rate you specify in your SerialPort("COM1", 9600, ...) matches the printer baud rate. A delay, of about 500 milliseconds after Open() and also before Close() would be a good idea; this will ensure printer is ready to receive after Open, and it has processed your label before Close(). Also, since you are sending ZPL to the printer, check and make sure printer is setup to accept ZPL.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM