Re: chr(12) Form Feed in Notepad (Windows)

2010-01-16 Thread W. eWatson
D'Arcy J.M. Cain wrote: On Fri, 15 Jan 2010 20:17:35 -0800 W. eWatson wolftra...@invalid.com wrote: Could be, but I have no way of easily knowing. In any case, I was trying to write a simple report that could be printed with titles at the top of each page. If there's another common format that

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-16 Thread Tim Chase
W. eWatson wrote: I am writing a txt file. It's up to the user to print it using Notepad or some other tool. I have no idea how to send it directly to the printer, but I really don't want to furnish that capability in the program. From Google, The Graphics Device Interface (GDI). If you're

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-16 Thread Lie Ryan
On 01/17/10 02:37, W. eWatson wrote: D'Arcy J.M. Cain wrote: On Fri, 15 Jan 2010 20:17:35 -0800 W. eWatson wolftra...@invalid.com wrote: Could be, but I have no way of easily knowing. In any case, I was trying to write a simple report that could be printed with titles at the top of each

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-16 Thread John Yeung
On Jan 15, 7:40 pm, W. eWatson wolftra...@invalid.com wrote: I am writing a txt file. It's up to the user to print it using Notepad or some other tool. In another response, Tim Chase suggested creating an RTF file instead of plain text. I think this is your best bet if your goal is to get page

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-16 Thread Tim Chase
John Yeung wrote: In another response, Tim Chase suggested creating an RTF file instead of plain text. I think this is your best bet if your goal is to get page breaks with the least amount of additional effort. The package he's probably referring to is PyRTF. I took a quick look at it and in

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-16 Thread Steve Holden
Lie Ryan wrote: On 01/17/10 02:37, W. eWatson wrote: D'Arcy J.M. Cain wrote: On Fri, 15 Jan 2010 20:17:35 -0800 W. eWatson wolftra...@invalid.com wrote: Could be, but I have no way of easily knowing. In any case, I was trying to write a simple report that could be printed with titles at the

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread W. eWatson
Tim Chase wrote: W. eWatson wrote: Grant Edwards wrote: On 2010-01-15, W. eWatson wolftra...@invalid.com wrote: I thought I'd put a page break, chr(12), character in a txt file I wrote to skip to the top of the page. It doesn't work. Comments? Yes, it does work. Apparently not with with my

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread Tim Chase
W. eWatson wrote: Tim Chase wrote: The pseudo-pipeline comparison would be type file.txt lpt1: which would send the raw text file to the printer (assuming it's set up on LPT1, otherwise, use whatever port it's attached to in your printer control panel); or are you using something like

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread W. eWatson
Tim Chase wrote: W. eWatson wrote: Tim Chase wrote: The pseudo-pipeline comparison would be type file.txt lpt1: which would send the raw text file to the printer (assuming it's set up on LPT1, otherwise, use whatever port it's attached to in your printer control panel); or are you using

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread Mensanator
On Jan 15, 6:40 pm, W. eWatson wolftra...@invalid.com wrote: Tim Chase wrote: W. eWatson wrote: Tim Chase wrote: The pseudo-pipeline comparison would be   type file.txt lpt1: which would send the raw text file to the printer (assuming it's set up on LPT1, otherwise, use whatever

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread Neil Hodgson
W. eWatson wrote: I am writing a txt file. It's up to the user to print it using Notepad or some other tool. WordPad will interpret chr(12) as you want. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread W. eWatson
Mensanator wrote: On Jan 15, 6:40 pm, W. eWatson wolftra...@invalid.com wrote: Tim Chase wrote: W. eWatson wrote: Tim Chase wrote: ... program. From Google, The Graphics Device Interface (GDI). Have you considered the possibility that your printer can't print raw text files? I had one

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread W. eWatson
Neil Hodgson wrote: W. eWatson wrote: I am writing a txt file. It's up to the user to print it using Notepad or some other tool. WordPad will interpret chr(12) as you want. Neil That may be the solution. Just tell the end user to copy the file into it, and print it there. I

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread D'Arcy J.M. Cain
On Fri, 15 Jan 2010 20:17:35 -0800 W. eWatson wolftra...@invalid.com wrote: Could be, but I have no way of easily knowing. In any case, I was trying to write a simple report that could be printed with titles at the top of each page. If there's another common format that I can write in to