Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Adjusting dpi for printer

Adjusting dpi for printer

Scheduled Pinned Locked Moved C / C++ / MFC
hardwarequestion
1 Posts 1 Posters 0 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.
  • K Offline
    K Offline
    Kristian Nilssen
    wrote on last edited by
    #1

    I want to give the user the opportunity to adjust the dpi before printing. I have overridden CPrintInfo and can get my CMyPrintInfo to display instead. I'm confused with the dpi in the DEVMODE structure. Is dmPrintQuality just the horizontal resolution? Can I set dmYResolution to be any value between 1 and pDC->GetDeviceCaps(LOGPIXELSY) or are there specific hardware dependant values? When I do a "GetDevMode()->dmPrintQuality = DMRES_DRAFT", nothing changes on the output. If anyone can shed some light on any of these issues, I'd be very grateful.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups