Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird PRINTSTATUS() Behavior
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00107298
Message ID:
00107333
Vues:
17
>We are using FPW 2.6 under Win 95 and using some low level printer stuff to run receipt printers, cash drawers, etc. In the old dos/win 3.1 world, we could verify that the printer was ready before sending anything out the lpt port using the PRINTSTATUS() command. Under Windows 95, PRINTSTATUS() seems to return .T. regardless of whether there is a printer attached, the printer is online, or whatever. Then when the software actually tries to send data, it crashes if the printer isn't actually on line.
>
>I have disabled spooling, spooling of MS-Dos Jobs, etc. in the printer setup, but nothing seems to make a difference.
>
>Anybody know of a relieable way in Win 95/FPW 2.6 to verify that a printer is attached and prepared to receive data?
>
>thanks,
>Paul R. Moon

In VFP this command returns .T. as long as there's a printer attached via the control panel, regardless of its status. I have a feeling that the same is true in FPW 2.6. Have you tried seeing if SYS(13) will work?

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform