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