PDA

View Full Version : how to send printer commands using QPrinter?



cutie.monkey
22nd April 2010, 04:05
Hi All,

Is it possible to send printer commands (for receipt printer) such as double height, double width, autocut, etc. using QPrinter? I can managed to do this by sending the commands in the printer port, but my big problem here is, if the printer is connected over a network, in this case i can't send the command over the printer port. Maybe i should send the command over the printer name, but i don't know how to do this. Im reading the QPrinter docu but i can't find the right function to do this..

Any help would be very much appreciated..

high_flyer
23rd April 2010, 09:19
I am not sure I follow.
QPrinter is working against a printer driver, not directly.
So if you can send the commands you want when the printer is connected directly, the ability to send them over the network is dependent if the printer driver supports a connection over the LAN.

At least I think so.