>We have just discovered that neither sys(13) nor printstatus() work in VFP. Additionally, we have noticed that getprinter() and sys(1037), which both display the printer dialog box, do basically the same thing as the other two -- which is to indicate that the printer is 'ready' regardless of what its actual status is. I have waded through several of the threads about this issue, but have somehow missed the answer as to how one can actually determine if a printer is on line or offline or whatever. We would like to spare our users the dismay of getting stuck in a report and having to ctl-alt-delete their way out.
I'm not sure why the users are getting stuck in the report. I just get a message when I try to print to an off-line printer. However, with regard to PrintStatus(), I had a gut feeling that it shouldn't even work. But I googled the subject and found
this that applies.
There are some printer and print spooler related functions in the Windows API
here. Didn't see anything offhand that might apply.