[Tutor] Printing Sideway...
alan.gauld at btinternet.com
Sun Nov 8 10:07:01 CET 2009
> Ken G. wrote:
>> I am using Ubuntu 9.04 as my primary OS. I have Windows XP
>> installed in the first partition (dual boot). I have Python
>> 2.6.2 installed on both OS. The printer is a Cannon MX300.
>> To print on the envelope, I use Windows Works v4.5 which is
>> easy to use. I just learned how to print via Open Office
>> Writer 3.0.1 which took several hours to do properly.
>> If it is not possible to print sideways, I understand.
It is possible but the solution has nothing to do with Python.
That is the point Bob is making. How you print sideways depends
on the printer driver, the application software you are using, and
ON Unix you can print sideways by doing things like sending
print formatting codes through any of the print formatting programs
in Unix - groff being a good example. Or you could create an
HTML document containing your text and then print that via a browser.
Or you can format the output normally and then programmatically
set the printer driver options to print in a different orientation.
All of these could be done from Python or via manual intervention.
Author of the Learn to Program web site
More information about the Tutor