[PyQt] Re: Thermal Printer on QPrinter

Eduardo Willians edujurista at gmail.com
Tue Jan 20 13:09:58 GMT 2009


> Well, I'm trying to config a thermal printer (bematech[1]) with 79mm
> of paper width (72mm of printing capacity) and continous feed. But is
> not working correctly.
>
> Here is untill I got:
>
> <code>
> app = QApplication(sys.argv)
> printer=QPrinter()
> printer.setFullPage(True)
> printer.setPaperSource(printer.Auto)
> doc=QTextDocument("Hello World!")
> doc.print_(printer)
> </code>
>
> printer.setPageSize(printer...) method produces no diference, except
> if using "printer.Custom" that neither works correctly.
>
> Thanks.
>
> Eduardo Willians
>
> [1] http://www.bematech.com.br/produtos/minimp2100th.asp
>

I found out how to say in english the printer I need to config. It's a
RECEIPT PRINTER.

If you know how config this kind of printer, please help.

Thanks again.


More information about the PyQt mailing list