WinXPrint_Done


WinXPrint_Done (hPrinter)

Finishes printing

Parameter Description
hPrinter The handle to the printer DC

Returns

$$TRUE on success or $$FALSE on fail

Remarks

You must call this function once you have finished printing. It closes the printer and cleans up resources allocated for printing.

Examples

'print the contents of a window on a single page
hPrinter = WinXPrint_Start (1, 1, 1, -1, @cxPhys, @cyPhys, "Printing Test", $$TRUE, #hMain)
WinXPrint_Page (hPrinter, #hMain, 0, 0, 400, 300, cxPhys, cyPhys, 1, 1)
WinXPrint_Done (hPrinter)

Related Links

Printing
WinXPrint_Start
WinXPrint_Page