win32print.AddForm

AddForm(hprinter, Form)

Adds a form for a printer

Parameters

hprinter : PyPrinterHANDLE

Printer handle as returned by win32print::OpenPrinter

Form : dict

FORM_INFO_1 dictionary

Return Value

Returns None on success, throws an exception otherwise