title: Python, Excel, xlwings, ExportAsFixedFormat - pywintypes.com_error: (-2147352573, 'Member not found.', None, None)
body: <p>At first, I am sorry for my bad English.</p>
  <p>I tried to print Excel sheet via to_pdf() method in xlwings library. I used the simpliest code I found:</p>
  <pre><code>&quot;&quot;&quot;
  xlwings print sheet via to_pdf()
  &quot;&quot;&quot;
  
  import sys
  import xlwings as xw
  
  wb = xw.Book(r'D:\docasny.xlsx')
  xw.Book(r'D:\docasny.xlsx').sheets['stary-rozpis'].range('J1').value = &quot;XXX&quot;
  xw.Book(r'D:\docasny.xlsx').to_pdf(path=r'D:\docasny.xlsx',include=1)
  
   
  </code></pre>
  <p>This sample I found in dev
  <a href="https://docs.xlwings.org/en/stable/api.html?highlight=to_pdf()#xlwings.Book.to_pdf" rel="nofollow noreferrer">guide for xlwings</a></p>
  <p>I tried this in interactive mode too and this fails too.</p>
  <p>I read all answers here:
  <a href="https://stackoverflow.com/questions/55422990/xlwings-error-pywintypes-com-error-2147352573-member-not-found-none-no">First answer</a>
  <a href="https://stackoverflow.com/questions/51858470/xlwings-gives-member-not-found-none-none-error">Second answer</a></p>
  <p>And some answers in Czech, in my languaGE...</p>
  <p>But nothing was gone to success.
  Could you give me any advice? Thank you.</p>