Module win32print
A module encapsulating the Windows printing API.
Methods
- OpenPrinter
- Retrieves a handle to a printer.
- GetPrinter
- Retrieves information about a printer
- SetPrinter
- Changes printer configuration and status
- ClosePrinter
- Closes a handle to a printer.
- AddPrinterConnection
- Connects to a network printer.
- DeletePrinterConnection
- Disconnects from a network printer.
- EnumPrinters
- Enumerates printers, print servers, domains and print providers.
- GetDefaultPrinter
- Returns the default printer.
- GetDefaultPrinterW
- Returns the default printer.
- SetDefaultPrinter
- Sets the default printer.
- SetDefaultPrinterW
- Sets the default printer.
- StartDocPrinter
- Notifies the print spooler that a document is
to be spooled for printing. Returns the Jobid of the started job.
- EndDocPrinter
- The EndDocPrinter function ends a print job for the specified printer.
- AbortPrinter
- Deletes spool file for printer
- StartPagePrinter
- Notifies the print spooler that a page is to be printed on specified printer
- EndPagePrinter
- Ends a page in a print job
- StartDoc
- Starts spooling a print job on a printer device context
- EndDoc
- Stops spooling a print job on a printer device context
- AbortDoc
- Cancels print job on a printer device context
- StartPage
- Starts a page on a printer device context
- EndPage
- Ends a page on a printer device context
- WritePrinter
- Copies the specified bytes to the specified printer. StartDocPrinter and EndDocPrinter
should be called before and after. Returns number of bytes written to printer.
- EnumJobs
- Enumerates print jobs on specified printer.
- GetJob
- Returns dictionary of information about a specified print job.
- SetJob
- Pause, cancel, resume, set priority levels on a print job.
- DocumentProperties
- Changes printer configuration
- EnumPrintProcessors
- List printer providers for specified server and environment
- EnumPrintProcessorDatatypes
- Lists data types that specified print provider supports
- EnumPrinterDrivers
- Lists installed printer drivers
- EnumForms
- Lists forms for a printer
- AddForm
- Adds a form for a printer
- DeleteForm
- Deletes a form defined for a printer
- GetForm
- Retrieves information about a defined form
- SetForm
- Change information for a form
- AddJob
- Adds a job to be spooled to a printer queue
- ScheduleJob
- Schedules a spooled job to be printed
- DeviceCapabilities
- Queries a printer for its capabilities
- GetDeviceCaps
- Retrieves device-specific parameters and settings
- EnumMonitors
- Lists installed printer port monitors
- EnumPorts
- Lists printer ports on a server
- GetPrintProcessorDirectory
- Returns the directory where print processor files reside
- GetPrinterDriverDirectory
- Returns the directory where printer drivers are installed
- AddPrinter
- Adds a new printer on a server
- DeletePrinter
- Deletes an existing printer
- DeletePrinterDriver
- Deletes the specified driver from a server
- DeletePrinterDriverEx
- Deletes a printer driver and associated files
- FlushPrinter
- Clears printer from error state if WritePrinter fails