title: Access Error 2501: The OutputTo action was canceled. Running from System Account
body: <p>I'm having trouble with Microsoft Access 2010.  I have a reporting module that prints reports to printer, or to file.  The reports can be user requested, or automatic print.  The user requested reports run from the desktop logged in user.  The automatic print is kicked off by my Windows Service.</p>
  
  <p>We used to print these to .RTF and they work fine.  We want to modify our access reporting database to print to .PDF.  This is where the fun begins.  If we launch the access database as a user application, the report prints fine.  If we launch the access database from our windows service we get an error 2501 "The OutputTo action was canceled."</p>
  
  <p>This application is running on Windows 2008 Server R2.</p>
  
  <pre><code>DoCmd.OpenReport "Summary", acViewPreview
  DoCmd.OutputTo acOutputReport, "Summary", acFormatPDF, DataBasePath &amp; "Summary.pdf"
  DoCmd.Close acReport, "Summary", acSaveNo
  </code></pre>
  
  <p>If I change the acFormatPDF to acFormatRTF (and change the filename to summary.rtf) this works fine.  If I run this code as a logged in user, it works fine and generates the PDF.  If I change my windows service to "run as" a user instead of the System Account, it works as well.</p>
  
  <p>Unfortunately, I'm not in a position to run the service as a user account (without a LOT of testing).</p>
  
  <p>Any thoughts on why the system account cannot OutputTo PDF?</p>