Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check that the printer in online
Message
De
16/12/2009 02:48:46
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
15/12/2009 20:44:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01436911
Message ID:
01439303
Vues:
58
>>>Hi All:
>>>
>>>What is the best way to check that the printer is online and ready to accept commands?
>>>
>>>Something like:
>>>
>>>
>>>IF PrinterOnlineAndReadyToAcceptCommands()
>>>    ...do code
>>>ELSE
>>>    Display message 'HELP!  the printer will not print!'
>>>ENDIF
>>>
>>>
>>>Thanks,
>>>
>>>Yossi
>>
>>There used to be a command (in the old FoxPro/DOS) to check whether the printer is ready. Under Windows, this command (that still exists) no longer works, because printing is done through the Windows print spool... and that one is always ready to accept commands, even if the printer is not.
>
>Thanks. This is an important requirement for me, since the user wants to abort the system if the printer is not ready. Any ideas?

None.

But if a printer is ready means nothing. A common printer will give you a paper out on its own interface - after the job is started. I hade once a printer the printed the first page and stoped then. Something in the toner system was broken.
Some printers come with something called printer monitor and you even might find a API to ask those monitor. Number one operation I do after installing such a printer is to deactivate such "features".
There might be special printers available too. Check for banking systems or so.

You possibly might check the spooler if you job will stuck there, but this is not reliable too.

My solution are two messageboxes the one asking the operator to wait for the last page and the second to ask the operator to check the paper. If the operator gives me an o.k. the print job is handled is printed.

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform