[pywin32-bugs] [ pywin32-Bugs-1087777 ] CDC.StartDoc() does not spool to file
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: SourceForge.net <no...@so...> - 2004-12-19 04:26:10
|
Bugs item #1087777, was opened at 2004-12-19 06:26 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1087777&group_id=78018 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Luc Saffre (lsaffre) Assigned to: Nobody/Anonymous (nobody) Summary: CDC.StartDoc() does not spool to file Initial Comment: The documentation states that CDC.StartDoc() has a second parameter "outputFile": "Use this to spool to a file. Omit to send to the printer." As far as i can see, this parameter has no effect. I use it as follows: dc = win32ui.CreateDC() dc.CreatePrinterDC(printerName) dc.StartDoc("my print job",r"c:\temp\temp.txt") dc.SetMapMode(win32con.MM_TWIPS) dc.StartPage() ... print something... dc.EndDoc() This parameter would be useful because I am writing test cases, and I don't want them to really print something by accident. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1087777&group_id=78018 |