471,312 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,312 software developers and data experts.

Sending ZPLII Code to Zebra RW220 via Serial Port


This apparently is a common problem and I've yet to read a solution that actually works for my specific situation.

I have a Zebra RW220 printer that I connect to via Bluetooth connection mapped to a serial port. The application I'm writing runs on a Windows Mobile 5 device, so there's no built in printer support and I have to use a serial port.

When I try to write the zpl code to the serial port, the printer simply prints the code verbatum. In other words, it does not 'interpret' the code, but instead, prints it out on the label instead of printing the barcode as instructed in the zpl code.

I've tried sending the string value containing all of the zpl code to the serial port using the serial port .Write() and .WriteLine() methods. I've also tried converting the string value to a byte array and sending that. Neither way works.

My backup plan was to create the barcode as an image and send the image, but if I can't send anything but text to the printer, then the printer seems rather useless to me as a c# developer.

Zebra's manuals say to compile the zpl code into a text file and send via a command prompt (copy file to serial port), which is equivalent to using the Send File menu command in Hypertext Terminal. When the device is connected to my desktop, I can do that fine, but this is a manual process and I want to automate this.

I could purchase a third-party library or control that would allow me to do this rather simply, but I want to learn how this is done so I don't have to rely on a third-party application.

Any help is greatly appreciated.


Aug 2 '08 #1
0 2618

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by ken | last post: by
2 posts views Thread by wesolutki | last post: by
15 posts views Thread by colin | last post: by
1 post views Thread by Rich | last post: by
10 posts views Thread by sklett | last post: by
reply views Thread by =?Utf-8?B?Q2hhcmxpZQ==?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.