title: How to print a document using PrintDialog in C#
body: <p>Here is my Sample code . But its printing an Empty page</p>
  
  <pre><code>            printDocument1.DocumentName = "C:\a.pbf";// PrintDocument printDocument1
              printDialog1.Document = printDocument1;
              printDialog1.AllowPrintToFile = true;
              printDialog1.AllowSelection = true;
              printDialog1.AllowSomePages = true;
              printDialog1.PrintToFile = true;
              if (printDialog1.ShowDialog() == DialogResult.OK)
                  printDocument1.Print();
  </code></pre>
  
  <p>Whats wrong with this?. Please help me</p>