Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need help Trapping for Printer Errors
Message
 
To
18/12/2001 12:02:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00595572
Message ID:
00595715
Views:
19
Tracy,
thanks for the reply. PRINTSTATUS(), according to the VFP, does not work with Windows printers:

In Visual FoxPro, PRINTSTATUS( ) always returns true (.T.) if the printer is connected through the Windows Control Panel.

Am I wrong here?

John.


>John, this is what we use BEFORE we initiate the print job:
>
>
>	IF !PRINTSTATUS()
>		SET PRINT TO
>		SET DEVICE TO SCREEN
>		=okay("Printer is not ready.",7,0,'PORT: '+port)
>		xreturn = .F.
>	ENDIF
>
>
>Does this not work for you? After this, when the print job is initiated, we trap for the general printing errors in our errortrap program.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Reply
Map
View

Click here to load this message in the networking platform