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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to know when a printer is online?

Status
Not open for further replies.

Vodka32

Programmer
Oct 15, 2003
4
PH
Greetings to all,
We've use sys(13) to check the printer status and it always give an output that its 'ready' but the printer is not connected...

now how can we tell that vfp to send a signal to the printer to know wheathter its connected or not?

thanks,
vodka32
 
Similar questions have been asked before:
thread184-28306
thread184-476446
thread184-667171

In brief, what you can select from the Windows printer selection list are Windows printer drivers installed for certain printers. Unfortuantely in the Windows environment the current printer status is hidden from the application. You must leave it to Windows to check the status and report problems to the user, not the program itself. As seen on those threads and in the Printers section of the FAQs in his forum, some have written workaround code to check whether the report failed to print, was just previewed or actually printed.

This FAQ faq184-2919 uses the function WEXIST("Printing...") to detect if a report is being printed. Perhaps reverse logic could also be used to let the program know a report has NOT been printed. Still, the user and the program wouldn't know the connection status until AFTER you tried to print.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top