none
Printing - skip a page RRS feed

  • Question

  • I'm using the PrintDocument's PrintPage event to do my printing.  All works fine, but I can't figure out how NOT to print a page of a multi-page document.

    Even if I never call DrawString inside the PrintPage event for a particular page, a blank page is sent to the printer for that page.

    Monday, September 4, 2006 2:50 AM

Answers

  • Say you want to skip page #3.  When the 3rd PrintPage event fires, just render the contents of page 4...
    Monday, September 4, 2006 7:31 PM
    Moderator

All replies

  • Say you want to skip page #3.  When the 3rd PrintPage event fires, just render the contents of page 4...
    Monday, September 4, 2006 7:31 PM
    Moderator
  • I see what you're saying.  And I can see how that could work.  But it seems kind of kludgy, tho.  Is there really no way to set a property, for example, that says, "hey, just skip this page"?
    Wednesday, September 6, 2006 12:51 AM
  • No.  It's not the way PrintDocument works.  It just calls PrintPage if you ask for another page with e.MorePages = true, it doesn't count pages at all...
    Wednesday, September 6, 2006 1:12 AM
    Moderator
  • Ok, thanks, nobugz.  i'll give it a go.
    Wednesday, September 6, 2006 7:01 PM