Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print status
Message
De
13/12/2007 09:54:44
 
 
À
13/12/2007 09:48:09
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01275361
Message ID:
01275480
Vues:
21
>>>>>>Anybody knows a good function to get real print status(ready or not)?
>>>>>>Years ago I had a function but it failed get the real status of the printer
>>>>>
>>>>>There is basically no reliable way to find a printer status.
>>>>>
>>>>>Looks like it's a deja vu Re: Check printer status Thread #1222937 Message #1222990
>>>>
>>>>Good for my archive. Thanks... :)
>>>
>>>If you read the thread referenced in my message in this thread you'll find that this code is not reliable. But I would like to see your results just in case.
>>
>>Here is the results that I got here:
>>Name: Microsoft Office Document Image Writer Printer Status: Idle
>>Name: HP LaserJet 1200 Series PCL 5e (copy 1) Printer Status: Idle
>>Name: HP LaserJet 1200 Series PCL 5e Printer Status: Idle
>>Name: CutePDF Writer Printer Status: Idle
>>Name: Auto Microsoft Office Document Image Writer em MAKINGOFF Printer Status: Idle
>>Name: Auto HP LaserJet 1200 Series PCL em PSYSTEMS6 Printer Status: Idle
>>
>>
>>All comes Idle status.. even if I turn off or set the ready button to off
>
>Same here - and I have one printer with its USB cable yanked out. I think the code in the message actually reads the queue status, not the physical printer status. From what printers I had, I think the manufacturers still haven't come up with any unified protocol for messages passed from the printer to the driver, so the driver may have a applet which may pop up a dialog, but I don't think there's a consistent API that you can tap to extract that info. I haven't looked into this problem much, not ever since we switched to Windows, because Windows is the abstraction layer between your app and the printer. You don't print, you give Windows stuff to print. Windows will always tell you that the printing is "done" - sure enough, your app doesn't have to wait, the printjob is queued, and Windows will print it when it has the time and the printer is willing. Your app has no idea, and no control over this.

I set on control panel some printer to OFFLINE status.. the program still show Idle status
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform