Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cancel Printing After Already Started
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00831150
Message ID:
00831211
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform