How to check printer is connected to the system parallel/serial ports programatically

  • Thread starter Thread starter hari
  • Start date Start date
H

hari

Hi all,

I "m trying to send a command to the printer from UI. If the printer
is not connected to the system,the UI hangs.So, I need to check
whether printer is available to send the command.If printer is not
available, I will display messagebox "No printer connected"
So , I need to check wheteher printer is available( connected to the
system or not?)
 
for the parallel printer
1. Find which ports LPT1...
2. set a timer to poll the lpt status port
3. check PaperOut, Busy, and Error
4. set pop up message box
 
Back
Top