win32print.FlushPrinter

int = FlushPrinter(Printer, Buf , Sleep )

Clears printer from error state if WritePrinter fails

Parameters

Printer : PyPrinterHANDLE

Handle to a printer

Buf : str

Data to be sent to printer

Sleep : int

Number of milliseconds to suspend printer

Return Value

Returns the number of bytes actually written to the printer