printer delusion

Larry Bates lbates at syscononline.com
Wed Nov 3 21:56:31 CET 2004


Mario,

When you are new to something you may want to consider
going slow about criticism.  Quite often what you want
exists and you are unaware of it at the beginning.

wxWindows has good support for printers and is cross platform.

Specifically take a look at wxPython.lib.printout.  I use
PrintTable to do my table-style output quite a lot.  It
provides you with Print Preview, scaling, etc. with little
effort.

or if you prefer

You can use ReportLab to produce .PDF output files.
With this you have fine-grained output capabilities and
get electronic cross-platform files which for some
applications is a real benefit (e.g web projects).

Hope information helps.

Regards,
Larry Bates

Mario wrote:
> Hello, I am a new Python entusiast, I am studing it since some weeks and I
> think it's a great language and I was very happy with it, but when I came to
> make a printer routine I really got demotivated by the difficulty, why does
> Python covers easily  the most complicated tasks and on the printer there is
> this big hole? I was looking on the web, on newsgroups, to find some good
> solution but I couldn't believe that there is this big lack on the printers,
> as much I was happily surprised to find that Python handles easily diffucult
> tasks, I had a big delusion to find out the lacks of Python on the print
> problem, which is very important for me.
> 
> I really wish that soon will come out some implementation on the Python
> native package to handle printing on the various platforms.
> 
> I saw that the most easy thing was to write a txt file and shell "notepad /p
> filename" to print the data, (what a rude thing! imho), but that is not
> enough cause I need to eloborate datas and print styled reports that I used
> to code directly inside VB, but now I can't do it or is some cliffhanger
> task.
> 
> I started to work also for unix platforms and I thought that Python was the
> perfect language to write multiplatforms programs, I was so entusiast about
> it that I couldn't believe that I had to go in that problem now.
> 
> I really would appreciate that the developers will develope soon a global
> print function that one can use inside the code, that can use styled texts
> and graphics and then the interpreter will care about the os and printers.
> 
> Bye and thanks for any suggestion, if any.
> 
> Mario
> 
> PS: Was all too good to be true :P lol
> 
> 
1



More information about the Python-list mailing list