Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I find out if a printer is connected or not

Status
Not open for further replies.

pmscraiova

Programmer
Dec 8, 2001
86
RO
How can I find out if a printer is connected or not to the computer? VisualFox commands Sys(13) return 'READY' and Printstatus() return .T. even if a printer is not connected to my computer.
Thank you,
Eugen
 
Eugen,
If you mean physically, there isn't a way to do it natively in VFP. Sys(13) and Printstatus() are left over functions from FoxPro for DOS and are strictly for backward compatibility syntax - not functionality.

In Windows you almost always go through a print queue (spooler) in on your local system, which is always there, and it up to Windows to check on the printer's real status.

While you can make a Windows API call to check on this, it's not as straight forward as the DOS way of doing things!

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top