On Oct 8, 2019, at 9:58 AM, Holland, James via python-win32 <python-win32@python.org> wrote: > > I’m trying to open some rtf files to Word and then save as PDFs. > ... > Traceback (most recent call last): > > File "<ipython-input-17-e8d4aaddfc8f>", line 15, in <module> > doc.SaveAs2(output_dir + '/' + 'rtfTest.pdf', FileFormat = wdFormatPDF) > File > "C:\Users\CMTHOL~1\AppData\Local\Temp\gen_py\3.6\00020905-0000-0000-C000-000000000046x0x8x7\_Document.py", > line 461, in SaveAs2 > , CompatibilityMode) > com_error: (-2147352567, 'Exception occurred.', (0, 'Microsoft Word', > 'Command failed', 'wdmain11.chm', 36966, -2146824090), None)
Did you do any web searching for this? -2146824090 is 0x80A1066, which is a security issue. Do you have permission to write into that directory? Are you able to do this same action if you do it by hand? — Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc.
_______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32