Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Send command to network printer in linux

Send command to network printer in linux

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anmol2701
    wrote on last edited by
    #1

    Hi,

    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.

    Thanks

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      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.

      http://anavi.org/

      1 Reply Last reply
      0
      • A Offline
        A Offline
        anmol2701
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • T Offline
          T Offline
          t3685
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            anmol2701
            wrote on last edited by
            #5

            Problem is my printer is not installed yet. i want to send printing command to a printer on network by broadcasting

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved