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. MFC/Win32 Printing - setting page/paper size ?

MFC/Win32 Printing - setting page/paper size ?

Scheduled Pinned Locked Moved C / C++ / MFC
c++architecturehelpquestion
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.
  • A Offline
    A Offline
    ana_v123
    wrote on last edited by
    #1

    To print data from my CFormView, I am using MFC Print architecture (OnPreparePrinting, OnBeginPrinting, OnEndPrinting etc.) . OnPrint manages printing (and OnDraw for screen). On Dot-matrix printer, need to print 3 or 4 text-invoices one by one (one below another), on one A4 size paper (data is from CFormView). How/Where to set paper size (height) to say 2.55 inches, so that I can print single invoice without ejecting A4 paper (on Dot-Matrix printer). If possible, I wish to use MFC Doc-View Print architecture otherwise Win32 printing. Please help me with some code-snippet. Thanks for any help Ana

    Ana_v123

    T 1 Reply Last reply
    0
    • A ana_v123

      To print data from my CFormView, I am using MFC Print architecture (OnPreparePrinting, OnBeginPrinting, OnEndPrinting etc.) . OnPrint manages printing (and OnDraw for screen). On Dot-matrix printer, need to print 3 or 4 text-invoices one by one (one below another), on one A4 size paper (data is from CFormView). How/Where to set paper size (height) to say 2.55 inches, so that I can print single invoice without ejecting A4 paper (on Dot-Matrix printer). If possible, I wish to use MFC Doc-View Print architecture otherwise Win32 printing. Please help me with some code-snippet. Thanks for any help Ana

      Ana_v123

      T Offline
      T Offline
      thammadi
      wrote on last edited by
      #2

      Check the following code project article http://www.codeproject.com/printing/printerorientation.asp I hope it helps

      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