chr(12) Form Feed in Notepad (Windows)

W. eWatson wolftracks at invalid.com
Sat Jan 16 05:26:09 CET 2010


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 just tried it in Wordpad, and it works, but my --- underlines are 
pushed together. Maybe tabs instead of spaces. The columns past Seq # in 
WordPad may suffer from the characters not being fixed width. Well, a 
little work with WordPad might be enough for users to get it right. 
"Copy txt file into wordpad. Select all the text, and set format to 
fixed (if that's possible.).

Here's what a txt sample looks like. It has line wrap here, and the page 
feed

Date/Time &    Station UTC                  Seq # Frames Time Span Pix 
Dst Pix/Sec
------------------- -- -------------------  ----- ------ --------- 
------- -------
2008/11/12 17:38:58 WW 2008/11/13 01:38:58      1   Noise data.  Short 
track.
2008/11/12 17:39:24 WW 2008/11/13 01:39:24      2   Noise data.  Short 
track.



  <-------------PAGE FEED
Date/Time &    Station UTC                  Seq # Frames Time Span Pix 
Dst Pix/Sec
------------------- -- -------------------  ----- ------ --------- 
------- -------
2008/11/17 22:29:54 WW 2008/11/18 06:29:54     21   Noise data.  Short 
track.
2008/11/18 01:51:36 WW 2008/11/18 09:51:36     22   Noise data.  Short 
track.
2008/11/18 04:05:03 WW 2008/11/18 12:05:03     23   Noise data.  Short 
track.
2008/11/18 17:40:42 WW 2008/11/19 01:40:42     24    95      3.17 
48.17   15.21



More information about the Python-list mailing list