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
>
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
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
> 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
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.
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
.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/
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
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
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
10 matches
Mail list logo