[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-20 03:02:14
|
Bugs item #1087777, was opened at 2004-12-19 15:26 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1087777&group_id=78018 Category: None Group: None >Status: Closed >Resolution: Wont Fix 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. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2004-12-20 14:02 Message: Logged In: YES user_id=14198 I have verified that we are setting the lpszOutput element of the DOCINFO structure. I'm afraid I have no idea why it isn't working for you, but I can't see a bug in pywin32 here. Please re-open if you think there is something we are doing wrong. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1087777&group_id=78018 |