What are the available data types accepted by *tuple* in
win32print.StartDocPrinter(*hprinter, level, tuple*)? Or, if this is
determined by my printer driver, how can I find this information?
I am trying to hack together a program that will print a html file I've
generated onto a 3x5 index card... code below:
def print_data(data):
pHandle = OpenPrinter(GetDefaultPrinter(),
{"DesiredAccess":PRINTER_ALL_ACCESS})
devmode = GetPrinter(pHandle, 8)["pDevMode"]
devmode.PaperLength = 1270
devmode.PaperWidth = 762
SetPrinter(pHandle, 8, {"pDevMode":devmode}, 0)
hJob = StartDocPrinter(pHandle, 1, ("spellcard.html", None, "RAW"))
StartPagePrinter(pHandle)
WritePrinter(pHandle, data)
EndPagePrinter(pHandle)
EndDocPrinter(pHandle)
ClosePrinter(pHandle)
So what I'm really asking, if anyone can answer, is this: How do I turn my
HTML file into something I can print?
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32