473,385 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

sending data to a printer 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

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 3699

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: notregister | last post by:
hi, i have been trying to send a printer-ready data to an unknown printer to print. the reason why the printer is unknown is that i do no wish installed any printer driver. so at the end my...
by: coolsilver.net | last post by:
I am not sure if I am in the right group. My problem is this: My VB.NET application prints to the Epson printer using Epson OPOS drivers. I have downloaded the Epson ADK for .NET from the...
by: Schwarty | last post by:
I hope I posted this to the correct group. If not, please let me know and I will get it posted in the correct section. I have a web application developed in ASP.NET using C# for the code behind....
by: wesolutki | last post by:
Hi, how to send data to other application by serial port? I want to have two programs opened on one computer, one send and second recive data, but using serial port. Wesolutki :-)
by: colin | last post by:
Hi, Im familiar with c,c++ etc, and Ive spent a week trying to write my first app in c# it works reasonably well, but im having difficulty getting to grips with inter thread signalling etc. I...
by: hari | last post by:
Hi all, I need to automate printer command testing, prinetr supports parallel/ serial/USB.How can i send the commands from python to printer. I have got pyparallel, as am new to python, no...
by: Rich | last post by:
Hello, I am working on a python library for sending and receiving data from a Subaru's ECU (the fuel injection computer) via the OBD-II port and an OBD to USB cable, with the Subaru Select Monitor...
by: ASPnewb1 | last post by:
I'm running into a problem of how to send a string across to another machine via serial port using the serial port class. The string that needs to be sent is like this, ...
by: Charles Crawford | last post by:
Hi, 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...
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.