Mr Bad Programmer
Mr Bad Programmer

Reputation: 109

Connection Delphi Printer

I need to connect my Delphi software to a SmartDate x40 printer, I've tried using winslock. I'm very new at Delphi and I'm unable to make it work, I'd highly appreciate any tips or little help any of you kind guys could make.

I've seen a few posts about using Winslock with Delphi, tho all of them use a client-server connection in whish is the client the one making the connection, I'd need being the server initiating the communication to the SmartDate machine being able to send a few ASCII orders.

Thank you very much.

Upvotes: 0

Views: 565

Answers (1)

Dsm
Dsm

Reputation: 6013

Perhaps you misunderstand the terms client and server. The printer is the server (it serves the client application'. Your application is the client (it asks the printer to do something.) That is why the examples are as they are. Your application could be a server for something else, but it is still a client of the printer.

Upvotes: 1

Related Questions