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. Problems with HP printers
Forum Updated to NodeBB v4.3 + New Features

Problems with HP printers

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.6k 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.
  • S Offline
    S Offline
    supagu
    wrote on last edited by
    #1

    I have been having some issues with HP printers (HP DesignJet 1055CM and HP DesignJet 5500ps 60 HPGL2) and Qt.
    Firstly I'm on windows, and have bypassed the QPrintDialog as this displays a dialog that brings up the print dialog, while I want a print properties dialog.

    So I do this my self using PrintDlg win32 API with the Flag PD_PRINTSETUP.
    Once the user accepts this dialog, I attempt to apply the values to a QPrinter.

    The first problem is HP drivers do not change the dmColor field of the DEVMODE structure so when you set to greyscale this value is still 1.

    The second problem is setting of a custom paper size. HP printers ignore setting dmPaperWidth or dmPaperLength. It looks to exclusively use dmPaperSize. To compound the problem, the drivers do not allow me to use the win32 API AddForm, or SetForm.
    When you set up a custom paper size, this information seems to be saved in the printer so if you print using the result from PrintDlg
    it should print correctly. Just extracting this information seems to be a problem.

    Has any one run in to a similar situation? I can see the only solution to my problem is to roll my own version of QWin32PrintEngine

    1 Reply Last reply
    0
    • M Offline
      M Offline
      morgan1
      Banned
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      -1

      • Login

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