how to detect printer is not connected to system

  • Thread starter Thread starter hari
  • Start date Start date
Look in the printers and faxes folder and then print a test page.

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?)
 
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?)

Are you running dos? linux? win 3.1? Delphi? Visual C#? Fortran?
Cobol?
 
Are you running dos? linux? win 3.1? Delphi? Visual C#? Fortran?
Cobol?- Hide quoted text -

- Show quoted text -

My Os is Win XP and I m developing the GUI in VC++. Ihave checked
PRINTER_INFO_6 in MSDN which gives the status of the printer in
printers and faxes folder.But I need to know whether the printer is
connected to the PC's parallel/serial port.
 
hari said:
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?)
Hmmm,
How about first command to check the printer ready status?
 
Hmmm,
How about first command to check the printer ready status?- Hide quoted text -

- Show quoted text -

Hi
I m sending the command thru port monitor writeport,this writeport
takes time to recogonize that printer is not connected.
To send the first command printer should be there? :(
 
Back
Top