Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cancel Printing After Already Started
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00831150
Message ID:
00831211
Vues:
19
API function OpenPrinter retrieves a handle to a printer using its name
DECLARE INTEGER OpenPrinter IN winspool.drv;
	STRING pPrinterName, INTEGER @phPrinter,;
	INTEGER pDefault
API function SetPrinter with PRINTER_CONTROL_PURGE parameter deletes all printer jobs.
DECLARE INTEGER SetPrinter IN winspool.drv;
	INTEGER hPrinter, LONG lvl,;
	INTEGER pPrinter, LONG cmd
API function SetJob pauses, resumes, cancels, or restarts a print job on a specified printer.
DECLARE INTEGER SetJob IN winspool.drv;
	INTEGER hPrinter, INTEGER JobId, INTEGER lvl,;
	INTEGER pJob, INTEGER cmd
FoxPro code samples (members area):

How to delete all print jobs for a printer
http://www.news2news.com/vfp/?example=370

Simple printer queue monitor: deletes, pauses, resumes print jobs for local printer
http://www.news2news.com/vfp/?example=373&function=544
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform