title: While doing "Excel to pdf conversion " via Python I am getting error
body: <p>Error is : (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147352565), None)</p>
  <pre><code>xlApp = client.Dispatch(&quot;Excel.Application&quot;)
  books = xlApp.Workbooks.Open(cwdx+&quot;\\Temp\\Excel\\Temp_excel&quot;+str(i)+&quot;.xlsx&quot;)
  ws = books.Worksheets[0]
  ws.Visible = 1
  rpt_path=cwdx+'\Pdfs\\'+str(i)+'_report_card.pdf'
  print(&quot;Report_&quot;+str(i)+&quot;_Printed&quot;)
  ws.ExportAsFixedFormat(0,rpt_path )
  </code></pre>
  <p>at line : ws = books.Worksheets[0]</p>
  <p>It was working properly just few minutes ago</p>