title: Print to a network printer using IP address
body: <p>I want  to send in a filename and a printer's IP address to specify which printer to print to.</p>
  
  <p>I am getting an error saying "Settings to access printer 'xxx.xxx.xxx.xxx' are not valid." when I get to printdoc.Print().</p>
  
  <p>How to I set which printer to print to based on the IP Address?</p>
  
  <pre><code>printdoc = new PrintDocument();
  printdoc.PrinterSettings.PrinterName = IPAddress.Trim;
  printdoc.DocumentName = FileName;
  printdoc.Print();
  </code></pre>
  
  <p>How to solve this issue? It's a C# vs2010 standalone Windows application.</p>