title: Is there anyway to specify a PrintTo printer when spawning a process?
body: <h2>What I Have</h2>
  
  <p>I am currently writing a program which takes a specified file and the performs some action with it. Currently it opens it, and/or attaches it to an email and mails it to specified addresses.</p>
  
  <p>The file can either be of the formats: Excel, Excel Report, Word, or PDF.</p>
  
  <p>What I am currently doing is spawning a process with the path of the file and then starting the process; however I also am trying to fix a <strike>bug</strike> feature that I added which adds the verb 'PrintTo' to the startup information, depending on a specified setting.</p>
  
  <h2>What I Need</h2>
  
  <p>The task I am trying to accomplish is that I would like to have the document open and then print itself to a specified printer named within the program itself. Following that up, the file should then close itself automatically.</p>
  
  <p>If there is no way to do this generically, we might be able to come up with a way to do it for each separate file type.</p>
  
  <h2>What you Need</h2>
  
  <p>Here is the code I'm using:</p>
  
  <pre><code>ProcessStartInfo pStartInfo = new ProcessStartInfo();
  pStartInfo.FileName = FilePath;
  
  // Determine wether to just open or print
  if (Print)
  {
      if (PrinterName != null)
      {
         // TODO: Add default printer.
      }
  
      pStartInfo.Verb = "PrintTo";
  }
  
  // Open the report file unless only set to be emailed.
  if ((!Email &amp;&amp; !Print) || Print)
  {
      Process p = Process.Start(pStartInfo);
  }
  </code></pre>
  
  <h2>How I'm doing...</h2>
  
  <p>Still stumped... might call it like Microsoft does,'That was by design'.</p>