title: Printing a Document
body: <p>I want to print my <code>TextBox</code> and here is my code:    </p>
  
  <pre><code>private void MenuItemPrint()
  {
          if (FileName != "")
          {
              PrintDocument document = new PrintDocument();
              document.PrinterSettings.PrintFileName = FileName;
              document.Print();
          }
  }
  </code></pre>
  
  <p>and it doesn't work. What should I do?</p>