title: Increasing paper height per iteration using printdocument
body: <p>i m using printdocument for a printout. i want to increment the size of the paper after each row is added. I found a similar question <a href="https://stackoverflow.com/questions/4064103/print-on-continuous-paper-using-c-sharp">here</a> and <a href="https://stackoverflow.com/questions/4365360/printing-on-roll-paper">here</a>. But the solution doesnot work. I m using a Component class to override the base method of Printdocument and I m setting the page size in OnBeginPrint event </p>
  
  <pre><code>int pageHt = 288, pageWt = 314;
  protected override void OnBeginPrint(System.Drawing.Printing.PrintEventArgs e)
          {
              // Run base code
              base.OnBeginPrint(e);
              base.DefaultPageSettings.PaperSize = new PaperSize("Custom", pageWt, pageHt);
              base.DefaultPageSettings.Landscape = false;
          }
  </code></pre>
  
  <p>Then for each iteration i m trying to increase the paper height</p>
  
  <pre><code>base.DefaultPageSettings.PaperSize.Height += 22;
  </code></pre>
  
  <p>But the paper height does not increment. Help appreciated. Thanx.</p>