PDA

View Full Version : Printing with Dot Matrix printers problem - text doesn't appear correctly.



AjGilee
29th May 2011, 18:27
Hi, Guys.

While printing on dot matrix printer, text appeared too tight on portrait, and too loose while on landscape (only with Qt). When on other program like Office, etc, the printer works normal.

After some check, i found that it's caused by different resolution on the printer.
the printer support like: 240*144, 120*144, 120*72 dpi. (QPrinter physical res).
while QPrinter (logical res) is square (96*96, 300*300, etc.).

Any solution to get the text printed right?

PS: I've read this on Qt's Doc, but not sure how to get it done :o
Note that if the physicalDpiX() doesn't equal the logicalDpiX(), the corresponding QPaintEngine must handle the resolution mapping.

AjGilee
1st June 2011, 19:37
I'm sorry to bring this up again.. But Is there really no solution for this?

Are dot matrix printer should be used with direct printing only in Qt? not with QPrinter?
Does anyone know how to handle the resolutions difference?

Dot Matrix are still widely used in my country... :crying: