title: Automatically Word-Wrapping Text To A Print Page?
body: <p>I have some code that prints a string, but if the string is say: "Blah blah blah"... and there are no line breaks, the text occupies a single line.  I would like to be able to shape the string so it word wraps to the dimensions of the paper. </p>
  
  <pre><code>private void PrintIt(){
      PrintDocument document = new PrintDocument();
      document.PrintPage += (sender, e) =&gt; Document_PrintText(e, inputString);
      document.Print();
  }
  
  static private void Document_PrintText(PrintPageEventArgs e, string inputString) {
      e.Graphics.DrawString(inputString, new Font("Courier New", 12), Brushes.Black, 0, 0);
  }
  </code></pre>
  
  <p>I suppose I could figure out the length of a character, and wrap the text manually, but if there is a built in way to do this, I'd rather do that.  Thanks!</p>