[pywin32-bugs] [ pywin32-Bugs-1481242 ] win32print.WritePrinter() changes CR/LF to LF
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2006-05-03 16:54:17
|
Bugs item #1481242, was opened at 2006-05-03 16:54 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=1481242&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None Status: Open Resolution: None Priority: 5 Submitted By: DaveNation (dnation) Assigned to: Nobody/Anonymous (nobody) Summary: win32print.WritePrinter() changes CR/LF to LF Initial Comment: I am trying to send files containing raw PCL5 data directly to a Laserjet printer. I am using the following win32print calls : h = OpenPrinter('Laserjet') StartDocPrinter(h,1,('bosdoc',None,'RAW')) WritePrinter(h,buff) EndDocPrinter(h) When directing the data directly to the printer, only the first line is printed. When requesting StartDocPrinter() to spool to a file, the output file is identical to the input file except all CR/LF pairs have been changed to single LF characters. (In PCL5, sending CR resets the x co-ord.) When making the same calls through VB6, the spooled file still contains the CR/LF pair, which makes me think it is the Python interface code that is removing the CR character. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1481242&group_id=78018 |