title: How to add print dialog to the printpreviewdialog?
body: <p>My boss wants me to create the window form that has printing function, but he wants to print the <code>datagridview</code> after preview.</p>
  
  <p>So now I encourage the problem, I cannot print multiple set of paper or choose the printer or make any changes when click the print button on <code>printpreviewdialog</code>.When I click the button, it will direct print the paper. So I wish to join the <code>printpreviewdialog</code> and <code>printdialog</code>.</p>
  
  <p>Why the <code>printpreviewdialog</code> and <code>printdialog</code> can only be used in different buttons? It's lack of usibility when needed to click one button to preview and click another button to print multiple set and make changes of printer.</p>
  
  <p>Any one can help me?</p>
  
  <p>printdialog</p>
  
  <pre><code>DialogResult result = printDialog1.ShowDialog();
              // If the result is OK then print the document.
              if (result == DialogResult.OK)
              {
                  position = 0;
                  pageno = 1;
                  printDocument2.DefaultPageSettings.Margins = new Margins(20, 20, 20, 20);
                  printDocument2.OriginAtMargins = true;
                  printPreviewDialog1.Document = printDocument2;
                  printPreviewDialog1.ShowDialog();
              }   
  </code></pre>
  
  <p>printpreviewdialog</p>
  
  <pre><code>printDocument3.DefaultPageSettings.Margins = new Margins(20, 20, 20, 20);
              printDocument3.OriginAtMargins = true;
              //((ToolStripButton)((ToolStrip)printPreviewDialog1.Controls[1]).Items[0]).Enabled = false;
              printPreviewDialog1.Document = printDocument3;
              printPreviewDialog1.ShowDialog();
  </code></pre>