teixeira Posted July 9, 2006 Posted July 9, 2006 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 Quote
Administrators PlausiblyDamp Posted July 9, 2006 Administrators Posted July 9, 2006 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? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
teixeira Posted July 9, 2006 Author Posted July 9, 2006 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.