I'm trying to do some text-based printing on Windows. My program makes use of windows' "notepad /p file.txt
" functionality that prints a text file on the default printer.
The problem is that you cannot say that you want to print in landscape instead of portrait. In the same way, it's not possible to print to another printer.
Some background information on this: I'm printing out of a Tcl/Tk program (see The Tcl'ers wiki on text printing). I can print using the GDI, but for some reason this is too slow, and I want to offer text printing as a fast alternative as print to a text file is already available.