Re: Help wanted - Duplex printing

2026-08-27 Thread dn via Python-list
Rob, On 28/08/2026 00:08, Rob Cliffe via Python-list wrote: I have a Windows 11 laptop and an Epson WF-4820 printer. Is there any way I can programmatically print two files, one on each side of the same sheet of paper? The following program doesn't quite work (Python 3.13.3): How long are

Re: Help wanted - Duplex printing

2026-08-27 Thread Rob Cliffe via Python-list
Thanks MRAB.  I tried this and got an error message, but a beautifully clear one:     TypeError: StartDocPrinter() argument 3 must be 3-item sequence, not dict So I changed it thus: doc_info = ("Raw FF Test", None, "RAW") The good news: it printed.  Well, the first time I ran the program it

Re: Help wanted - Duplex printing

2026-08-27 Thread Mats Wichmann
On 8/27/26 09:16, Rob Cliffe via Python-list wrote: Thanks Pierre and MRAB. I tried that; here is a hex dump of my concatenated file: 16:09:12 R:\DSPR>dump ShortDocument3.txt File ShortDocument3.txt Size 60 (hex 3C) bytes :  54 68 69 73 20 69 73 20 74 68 65 20 66 69 72 73  |This is the

Re: Help wanted - Duplex printing

2026-08-27 Thread Rob Cliffe via Python-list
Thanks Pierre and MRAB. I tried that; here is a hex dump of my concatenated file: 16:09:12 R:\DSPR>dump ShortDocument3.txt File ShortDocument3.txt Size 60 (hex 3C) bytes :  54 68 69 73 20 69 73 20 74 68 65 20 66 69 72 73  |This is the firs| 0010:  74 20 64 6F 63 75 6D 65 6E 74 2E

Re: Help wanted - Duplex printing

2026-08-27 Thread MRAB
On 27/08/2026 13:08, Rob Cliffe via Python-list wrote: I have a Windows 11 laptop and an Epson WF-4820 printer. Is there any way I can programmatically print two files, one on each side of the same sheet of paper? The following program doesn't quite work (Python 3.13.3): [snip] What

Help wanted - Duplex printing

2026-08-27 Thread Rob Cliffe via Python-list
I have a Windows 11 laptop and an Epson WF-4820 printer. Is there any way I can programmatically print two files, one on each side of the same sheet of paper? The following program doesn't quite work (Python 3.13.3): import win32api import win32print printdefaults = {"DesiredAccess":

Re: Help wanted - Duplex printing

2026-08-27 Thread MRAB
On 27/08/2026 16:16, Rob Cliffe via Python-list wrote: Thanks Pierre and MRAB. I tried that; here is a hex dump of my concatenated file: 16:09:12 R:\DSPR>dump ShortDocument3.txt File ShortDocument3.txt Size 60 (hex 3C) bytes :  54 68 69 73 20 69 73 20 74 68 65 20 66 69 72 73  |This is