• Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.comm checking for printers connected to port

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The application I support has a program that prints to a printer connected to comm port 1. The problem is some site will not have these printers connected. Is there a way with the javax.comm api to determine if a
printer is connected to the comm port?

Thanks.
 
Kevin Mangold
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you need to figure how to get the printer to echo back. All hardware has a way to echo data back if you send it. If you get text back, a printer is connected, otherwise nothing is there.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!