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. Is it compusory to call CPrintInfo::SetMaxPage before starting print????

Is it compusory to call CPrintInfo::SetMaxPage before starting print????

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 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
    VC Maniac
    wrote on last edited by
    #1

    I cannot calculate the exact number of pages to be printed in advance, so I do not call SetMaxPage in OnBeginPrinting(). In this case only 1 page is printed. I tried setting it to maximum(0xFFFF), but still it prints only 1 page. The data(sample) to be printed is clearly more than 5 pages. How do I continue with this? Is setting max page mandatory for printing more than 1 page? Thanks in Advance..

    _ 1 Reply Last reply
    0
    • V VC Maniac

      I cannot calculate the exact number of pages to be printed in advance, so I do not call SetMaxPage in OnBeginPrinting(). In this case only 1 page is printed. I tried setting it to maximum(0xFFFF), but still it prints only 1 page. The data(sample) to be printed is clearly more than 5 pages. How do I continue with this? Is setting max page mandatory for printing more than 1 page? Thanks in Advance..

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      The documentation says something about using the m_bContinuePrinting member if the max. page is not known.

      «_Superman_» I love work. It gives me something to do between weekends.

      V 1 Reply Last reply
      0
      • _ _Superman_

        The documentation says something about using the m_bContinuePrinting member if the max. page is not known.

        «_Superman_» I love work. It gives me something to do between weekends.

        V Offline
        V Offline
        VC Maniac
        wrote on last edited by
        #3

        Thanks superman.. I always use documentation. but in this case I totally forgot it. :)

        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