title: BeginPrint and PrintPage events not working on second time on button click
body: <p>I have a form with a tabcontrol with two tabpages:</p>
  <ul>
  <li>the first tabpage: gets the data from an excel and inserts it in a grid</li>
  <li>the second tabpage: has a print preview control and a <a href="https://www.codeproject.com/Articles/13982/Print-Preview-Control-Bar" rel="nofollow noreferrer">printbar</a></li>
  </ul>
  <p>The second tabpage gets the data from the grid on the first page!</p>
  <p>I'm trying to refresh the PrintPreviewControl, but without luck.
  When I start the application, the events (BeginPrint and PrintPage) gets called, but second time using a button, is not entering the event.</p>
  <p>setupReport() method:</p>
  <pre><code>    private void setupReport()
      {
          printDocument1 = new PrintDocument();
          printDocument1.BeginPrint += printDocument1_BeginPrint;
          printDocument1.PrintPage  += printDocument1_PrintPage;
  
          printDocument1.DefaultPageSettings.Margins = new Margins(80, 80, 80, 80);
  
          this.ucFormManagement1.addExtra(&quot;LeftMargin&quot;,printDocument1.DefaultPageSettings.Margins.Left);
          this.ucFormManagement1.addExtra(&quot;RightMargin&quot;, printDocument1.DefaultPageSettings.Margins.Right);
          this.ucFormManagement1.addExtra(&quot;BottomMargin&quot;, printDocument1.DefaultPageSettings.Margins.Bottom);
          this.ucFormManagement1.addExtra(&quot;TopMargin&quot;, printDocument1.DefaultPageSettings.Margins.Top);
          this.ucFormManagement1.addExtra(&quot;Orientation&quot;, printDocument1.DefaultPageSettings.Landscape);
  
          ucFormManagement1.Invalidate();
  
          this.preview = new System.Windows.Forms.PrintPreviewControl();
          this.preview.Document = this.printDocument1;
          this.preview.Dock = System.Windows.Forms.DockStyle.Fill;
          this.preview.Location = new System.Drawing.Point(0, 25);
          this.preview.Name = &quot;printPreviewControl1&quot;;
          //this.preview.Size = new System.Drawing.Size(786, 362);
          //this.preview.TabIndex = 2;
          preview.Invalidate();
  
          this.ucPrintBar1.PreviewControl = this.preview;
          this.tabPage3.Controls.Add(this.preview);
          this.ucPrintBar1.loadDefaults();
  
  
          ucPrintBar1.Invalidate();
          tabPage3.Refresh();
      }
  </code></pre>