Henk, my previous post referred to the printserver technique you posted, based on Michiel's python program. I think it is a great solution. Thanks to both of you.
It would be worthwhile developing a little help sheet to cover some of the do's, dont's and helpful tips.
Here are some I have collected:
1. If the pc print server doesn't respond, you have probably had a change in the PC's IP address caused by dynamic ip assignment. You need to run ipconfig, get the new ip address and update it in the SB program.
2. Before sending a print job, open Notepad on the PC and set the font name and size. Those will then be applied to your subsequent print jobs.
3. Any font can be used, but for column alignment, monospaced fonts are the best choice. In Windows, use Courier New or Lucida Sans Typewriter (there are other choices for Courier and Lucida, but they are proportionally spaced.)
4. A suggested font size for good readability with minimum use of paper is 11.
5. Notepad has a default header and footer, which is why you see "report.tx" printed at the top of each page and a line number at the bottom.
6. You can set or remove the header and footer by selecting File/Page Setup. The link Input Values will open a web page showing the codes you can use in the header and footer input fields. Leave the fields blank if you don't want them to appear.
7. Be sure to close Notepad before sending a print job. If it is left open, it will block the http command from the iPad and your job won't print.
I discovered a few more things today by experimentation.
By changing this line in the python code, you can get some some interesting variations:
os.system("notepad /p report.txt")
1. If you make a copy of the .py file and remove the "/p" on the above line, the print command sent from the iPad will open report.txt in Notepad and leave it open for editing, rather than opening it briefly, printing and closing. That will give you a chance to proofread, edit and/or change the font name and size if desired. Printing can then be done with the File/Print menu option.
2. If you make a copy of file 1 above, and change "notepad" to "write", the print command from the iPad will open report.txt in WordPad and leave it open for editing. ("write.exe" is the name of the executable file for WordPad.) WordPad has rich text editing capability, allowing a lot of enhancements to a basic text file, such as bold, italics, underline, multiple font name and/or size changes within the document, colored text, text alignment, insertion of images and drawings, etc.
I have three shortcuts now on my PC desktop, one for the original python printserver program, and one for each of the preview/edit options.