Send command to network printer in linux
I am using QUdpsocket to write datagram to printer by passing its IP. But i am not getting any response.
Any method to do it in qt. I am doing the same in vs 2010 with socket class.
Why don't you use the classes for printing provided by Qt? The documentation about "Qt printing supports seems quite good":http://qt-project.org/doc/qt-5/qtprintsupport-index.html.
Well i do not think that it will do any good, what i want to do is to print a test page on a certain printer on network through my application. So i think i have to send printer command using writedatagram or anything similar
The first paragraph of the "Qt printing documentation":http://qt-project.org/doc/qt-5/qtprintsupport-index.html literally states that it supports remote printers. Maybe you should give it a second look.
Problem is my printer is not installed yet. i want to send printing command to a printer on network by broadcasting