Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A way to determine whether a report has finished printin
Message
De
15/11/1999 18:34:46
 
 
À
15/11/1999 18:02:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00291255
Message ID:
00291334
Vues:
23
>>I need a way to know if a report has in fact been sucessfully printed. I can't see how VFP can know this, although I would guess you could, through the Win32 API, check the print queue to see if a job
>>is finished. Anybody have any suggestions or code to do this?
>>
>>Thanks
>
>I don't think there is a way to absolutely be sure, even going through the Win API. The report could spool to the printer and Windows would think it printed.

There are ways to do this, but it involves spooler interaction through the API, and it gets complex when networked printers are involved. Bela Bodecs produced an FLL that changed the name of print jobs, so he obviously accessed the spooler interface, as File#9319, and he provided source, so this might be a good place to start...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform