I was wondering if it is possible in Python to send a job to the user's printer. I have a string, and I wanted to be able to print it out on a piece of paper. I have wxPython installed and imported into the app if that makes any sort of difference... Thanks in advance!

Recommended Answers

All 2 Replies

It is easiest to write the data to a file, close it, and then call lpr using os.system() providing you want plain text. Anything more and you have to format it. Postscript is the easiest way to format output.

I was just going to print normal text anyway, so thanks very much for the help!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.