SYS(13) and the PRINTSTATUS( ) Function always return TRUE in VFP - this were only meaningful in FP DOS running directly in DOS. They are only in FPW and VFP for backward compatibility, and are pretty worthless. Since Windows normally prints through a Spooler, only it needs to know about the actual printer status. If the printer was local, you could use some Win32 API calls to check on the local port status, but a network printer depends a lot more on it's OS and what it makes available. In other words the solution wouldn't be the same for a Novell printer as it would for a Win NT/2000/2003 server or a Unix/Linux server!
Rick
"PLynch" <plynch (AT) quadramed (DOT) com> wrote
Quote:
I need to incorporate an error handler routine in my app, before
printing a report to a network printer...I need to check the printer
status. This needs to be done automatically, without user
interaction. If the printer is not ready, out of papaer, etc. I need
display a message, and then continue along. I was going to use
SYS(13), but I do not know if this is adequate enough. Any ideas??? |