Printing through socket connection.

teixeira

Regular
Joined
Apr 5, 2005
Messages
94
Location
LEIRIA-PORTUGAL
Hi all,

Is it possible to print through sockets?
I've a printer that allows socket connection to print, it receives data printing at one port and send its status (jam,online,offline,etc...) in another one.

I tried to make a connection with a TcpClient from (System.Net.Sockets) and send the data to the printer but it doesn't worked, thus it connected sucessfully.

The printer has it own programming language commands to print text and barcodes, it receives a sequence of escape characteres and commands to print the labels correctly.

Any idea will be appreciated

Thanks is advance,

Tiago Teixeira
 
If the printer is listening on a particular port then you should be able ton connect. Do you know if it uses TCP or UDP packets? If you try and connect, then send some data what errors / results do you get?
 
Hi,

In fact, i can connect, because i dont get any error when i attemp to connect it or i even don't get any erro when i send something, but the printer doesn't respond to the commands.

It uses TCP packets because in the manual it only refers to TCP/IP Protocol.

For much data i send to the printer it doesn't returns nothing.

Printer has another mode to print that is LPR or FTP, whats this?
FTP maybe file tranfer protocol? but how can i send i file in the correct format to the printer?
LPR i don't know what is!

any ideas?
Thanks
Tiago Teixeira
 
Back
Top