Printing through socket connection.

teixeira

Well-known member
Joined
Apr 5, 2005
Messages
94
Location
LEIRIA-PORTUGAL
Hi all,

Is it possible to print through sockets?
Ive 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 doesnt 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 dont get any erro when i send something, but the printer doesnt 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 doesnt 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 dont know what is!

any ideas?
Thanks
Tiago Teixeira
 

Similar threads

P
Replies
0
Views
176
Policy standard local admin account with Active Di
P
E
Replies
0
Views
137
eric tang 1
E
S
Replies
0
Views
146
Sivakumar282000
S
Back
Top