cognidox / OfficeToPDF

A command line tool to convert Microsoft Office documents to PDFs
https://www.cognidox.com/
Other
605 stars 135 forks source link

Error loading type library #18

Open napasa opened 6 years ago

napasa commented 6 years ago

Unable to cast COM object of type 'Microsoft.Office.Interop.PowerPoint.ApplicationClass' to interface type 'Microsoft.Office.Interop.PowerPoint._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{91493442-5A91-11CF-8700-00AA0060263B}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).

vittala commented 6 years ago

Can you let us know more about when and where you see this problem:

Regards Vittal

vittala commented 6 years ago

If running an Office repair doesn't work, does the following thread help: https://social.technet.microsoft.com/wiki/contents/articles/18919.c-ppt-to-pdf-unable-to-cast-com-object-of-type-microsoft-office-interop-powerpoint-applicationclass-to-interface-type-microsoft-office-interop-powerpoint-application.aspx

napasa commented 6 years ago

Thanks your response. Wow! It works good when I run it on Power Shell. I run it on git-bash before. emmmm, maybe you can add more details to tell user to run it on Power Shell. Another question, do you consider to support PDF file to Office doc file? I know Word2013 could support it. Thanks vittal response

napasa commented 6 years ago

Now same error report again even I use Power Shell. I also read link you pasted, It didn`t work for me

napasa commented 6 years ago

fix it. Please add more info to read.md to tell user to run ps or other cmd line as a administrator

napasa commented 6 years ago

https://thomasplagwitz.com/2016/04/02/powershell-script-to-save-all-pdfs-as-docx-in-and-underneath-a-folder-failing-on-word-2016-working-on-word-2010/