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. printing content in the specified position on document to printer

printing content in the specified position on document to printer

Scheduled Pinned Locked Moved C / C++ / MFC
comhelptutorialquestion
2 Posts 2 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.
  • V Offline
    V Offline
    vgkotha
    wrote on last edited by
    #1

    I want to print a page which has predefined area, so that the printer prints the content which is in the defined area.Say for example, a document usually has 32x13 inches ruler. we predefine the size to 8x11 inches area of the document. we actually need to print the content of the 8x11 inches? any help will be greatly appreciated. i desperately need this info. please send reply to vgkotha@rediffmail.com thanks in advance, from venu:confused

    R 1 Reply Last reply
    0
    • V vgkotha

      I want to print a page which has predefined area, so that the printer prints the content which is in the defined area.Say for example, a document usually has 32x13 inches ruler. we predefine the size to 8x11 inches area of the document. we actually need to print the content of the 8x11 inches? any help will be greatly appreciated. i desperately need this info. please send reply to vgkotha@rediffmail.com thanks in advance, from venu:confused

      R Offline
      R Offline
      Roger Allen
      wrote on last edited by
      #2

      Do you mean you want to print to a selected area of the page? If you do, override the OnPrepareDC() function and modify the pInfo->m_rectDraw member var to limit the printable rectangle to your app to the area of interest. You can do that by using something like: pInfo->m_rectDraw.left = pDC->GetDeviceCaps(LOGICALPIXELSX) * inches_offset1 ; pInfo->m_rectDraw.top = pDC->GetDeviceCaps(LOGICALPIXELSY) * inches_offset2 ; And so on... Roger Allen Sonork 100.10016 I think I need a new quote, I am on the prowl, so look out for a soft cute furry looking animal, which is really a Hippo in disguise. Its probably me.

      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