title: Exporting SSRS Reports to PDF from Python
body: <p>I am trying to export/print/generate SSRS reports from Python. It looks like SSPYRS should accomplish exactly what I am looking for. However, I get an error and can't find the ways around it.</p>
  
  <pre><code>import sspyrs
  try:   
     username= "user"
     password = "pass"
     params_multi = {'param1': value1, 'param2': value2, 'param3': value3}
     myrpt = sspyrs.report("http://sqlserver/reportingserrver/reportsfolder/reportname", username, password, params_multi).download('PDF',fileloc)
  except Exception as ex:
     template = "An exception of type {0} occurred. Arguments:\n{1!r}"
     message = template.format(type(ex).__name__, ex.args)
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>Report Server does not allow usable data export methods. Update server settings/version to enable XML, Excel, or CSV export.</p>
  </blockquote>
  
  <p>When I ran the the same reports from the browser everything is working fine. I can also access it without any problems from .net applications. So I doubt it's a permissions issues.</p>
  
  <p>I checked reportserver.config file on SQL Server and PDF rendering is enabled. I am not sure where else I can look.</p>
  
  <p>Any help guidance will be greatly appreciated.</p>