user1216992
user1216992

Reputation: 5

Java: Is there a way to print to a receipt printer via USB on Windows using ESC commands?

I have been stuck on this problem for a few months and I still can't get it working. How do I start communicating, sending commands, and printing to a receipt printer that is connected via USB?

Upvotes: 1

Views: 1441

Answers (2)

GreyBeardedGeek
GreyBeardedGeek

Reputation: 30088

Ok, I'll pile on the late-answer bandwagon. How about the jUSB project?

Upvotes: 0

turkoid
turkoid

Reputation: 51

I know it may be late, but one solution I've tried on windows is to install the receipt printer using the Generic/Text Only Driver. Then share it. Then mapping it to a LPT port, using a net use command:

net use \\%computername%\[sharename] LPT1: /persistent:yes

You can look up more options for net use here:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_use.mspx?mfr=true

Upvotes: 2

Related Questions