Hi,
I have one xlsm document , Using python I tried to convert that
document to PDF,
but COM raising pywintypes error "Save as method of Wroksheet class
failed".
Below is my code.
Please help in this regards
Thanks & regards
Sukumar Maddineni
I have one xlsm document , Using python I tried to convert that
document to PDF,
but COM raising pywintypes error "Save as method of Wroksheet class
failed".
Below is my code.
Code:
workbook = MicrosoftExcel.Workbooks.Open(document.filePath, 0, False, 2) workbook.Application.AskToUpdateLinks = 0 outputFileFolder = outputFolder+'\\'+str(ncount) outputFile = outputFileFolder+'\\'+str(ncount)+'.pdf' workbook.SaveAs(outputFile, 57) # at this line error is coming
Please help in this regards
Thanks & regards
Sukumar Maddineni
Comment