dbTalk Databases Forums  

Checking printer status using Visual FoxPro 6.0

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss Checking printer status using Visual FoxPro 6.0 in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PLynch
 
Posts: n/a

Default Checking printer status using Visual FoxPro 6.0 - 07-06-2004 , 09:25 AM






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

Reply With Quote
  #2  
Old   
Rick Bean
 
Posts: n/a

Default Re: Checking printer status using Visual FoxPro 6.0 - 07-06-2004 , 05:41 PM






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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.