Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 781
  • Last Modified:

What is a good printing library for wxpython, python code, and on windows?

I am working on a serialized inventory system, written in python, and my GUIs are written using wxpython. I need a good interface to write the local and networked/shared printers. I can figure out the gui side and finding the available printers, i just want a nice library to format the data out the printer. Something that allows me to draw lines, color, write BMPs and use fonts...
1 Solution
Basically, there are two ways of printing: text mode and graphical mode. In your case, you want to use the graphic mode. For MS Windows, the principles of printing to any printer are very similar as displaying the content on the screen. You have to open the printer and get the device context. Then you are using the device context to draw the texts using selected fonts, drawing images...

The OS kerner transforms the operations to the Windows Metafile format and sends it to the printer driver.

Now, the question is... are you familiar with all of that or you need something often called the report generator?

For wxPython support, see http://wiki.wxpython.org/Printing (or possibly the related wxWidget doc http://docs.wxwidgets.org/stable/wx_printingoverview.html)

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now