title: Why can't I print a chart from a windows service using NetworkService account?
body: <p>I have a C# windows service which is running under the <strong>NetworkService</strong> account. It occasionally needs to print a <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datavisualization.charting.chart(VS.100).aspx" rel="nofollow noreferrer">Chart</a> object which I do by simply calling:</p>
  
  <pre><code>chart.Printing.Print(false); // suppress the Printer Dialog
  </code></pre>
  
  <p>The weird thing is it seems works fine running as a console application.</p>
  
  <p>The only way it will work is if I run the service under a local admin account.</p>