Re: [PyQt] Re: Thermal Printer on QPrinter

2009-01-21 Thread Eduardo Willians
rinter) > > This could be used as the basis for what you need if, after removing the > setOutputFormat() and setOutputFileName() calls, it actually sends correct > output to the printer. Of course, there's the issue of the automatic page >

Re: [PyQt] Re: Thermal Printer on QPrinter

2009-01-21 Thread Eduardo Willians
rinter.Custom), printer.Millimeter) printer.setPaperSize(QSizeF(72, printer.Auto), printer.Millimeter) And also inversed: printer.setPaperSize(QSizeF(printer.Custom, 72), printer.Millimeter) printer.setPaperSize(QSizeF(printer.Auto, 72), printer.Millimeter) But none of these worked. Thanks any

Re: [PyQt] Re: Thermal Printer on QPrinter

2009-01-20 Thread Eduardo Willians
any code file using Eric it just works, without any configutarion. I deep studied Eric code, but I did not find the way. But, thank you anyway. Eduardo Willians ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Re: Thermal Printer on QPrinter

2009-01-20 Thread Eduardo Willians
> Hello Eduardo, >if you refer to normal receipt printers (like epson pos printers), i > use them but after have problems using directly with qt like you are trying > i configured the cups spool for the printer in raw format and create a file > in the encoding configured for the printer (cp

[PyQt] Re: Thermal Printer on QPrinter

2009-01-20 Thread Eduardo Willians
ter() > printer.setFullPage(True) > printer.setPaperSource(printer.Auto) > doc=QTextDocument("Hello World!") > doc.print_(printer) > > > printer.setPageSize(printer...) method produces no diference, except > if using "printer.Custom" that neither works correctly.

[PyQt] Re: Thermal Printer on QPrinter

2009-01-20 Thread Eduardo Willians
Does anyone know *anything* that could help? If you know one little thing please help. Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Thermal Printer on QPrinter

2009-01-19 Thread Eduardo Willians
.Auto) doc=QTextDocument("Hello World!") doc.print_(printer) 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/

[PyQt] Re: Code example for QPrinter (PyQt4)

2009-01-19 Thread Eduardo Willians
Better: #!/usr/bin/env python import sys from PyQt4.QtCore import * from PyQt4.QtGui import * Appli=QApplication(sys.argv) printer=QPrinter() doc=QTextDocument("Hello" ) dialog = QPrintDialog(printer) dialog.setModal(True) dialog.setWindowTitle("Print Document" ) # dialog.addEnabledOption(QAbs

[PyQt] Re: Code example for QPrinter (PyQt4)

2009-01-19 Thread Eduardo Willians
2009/1/19 Eduardo Willians : > I searched a lot on google and stuff, but I wasn't able to find a code > example for printing with PyQt4. > > If know a tutorial or have a simple file.py that shows how to print > (through a printer) with PyQt4 please send me. > > Thanks. &g

[PyQt] Code example for QPrinter (PyQt4)

2009-01-19 Thread Eduardo Willians
I searched a lot on google and stuff, but I wasn't able to find a code example for printing with PyQt4. If know a tutorial or have a simple file.py that shows how to print (through a printer) with PyQt4 please send me. Thanks. Eduardo Wil