Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PRINTSTATUS & Detecting Printers on LPT1
Message
From
23/08/2005 16:41:10
 
 
To
20/08/2005 12:58:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01042326
Message ID:
01043072
Views:
26
>>>PRINTSTATUS()does not work under Windows as it used to under MSDOS. Is there anyway that I can detect from a VFP9 application if a user has a printer attached AND SWITCHED ON on LPT1? At the moment if the printer is not attached or switched on the app just hangs.
>>>
>>>Thanks
>>>Barry Sutton
>>
>>Not really. Under Windows, the printer is attached to a spooler which is always on, no matter if the printer is turned on or not.
>
>Fred,
>Thanks for confirming that. Is there anyway to set up a timeout against the spooler so that I can avoid a hanging app in this circumstance?
>
>Barry.

Neither situation should "hang". The only thing I've ever seen is that if no printer is defined at all, that can cause problems.

You should be able to use SET("PRINTER",2) and if it's EMPTY() there is no printer installed.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform