Tichau / FileConverter

File Converter is a very simple tool which allows you to convert and compress files using the context menu in windows explorer.
https://file-converter.io/
GNU General Public License v3.0
6.53k stars 519 forks source link

Fail to open document with Microsoft Office (Office 10) #155

Open ray241278 opened 3 years ago

ray241278 commented 3 years ago

Hello,

i want to convert Excel (XLSX) to PDF. I am using Office 2010 and it is activated. Unfortunately, I keep getting the error message: Fail to open document with Microsoft Office (check if your license / installation are valid).

I have now completely uninstalled Office 2010 and reinstalled it. Then also the file converter. Unfortunately I still get this error message.

I also tried this on another computer in parallel and everything works fine there. The same operating system, the same office (Win10, Office 2010)

I would be very happy if you could help me.

Thanks in advance Rainer Heck

CBest3 commented 3 years ago

我也是一样的问题,为office2021版 image

controlb commented 3 years ago

I get the same issue using File Converter in converting Word .docx files to pdf. The error appears to be HRESULT: 0x80029C4A TYPE-E-CANTLOADLIBRARY

This is a relatively recent issue. Also, Word itself has no problem creating PDFs natively.

The screenshot is from the job's Logs > ConversionJob_Word (2).

Screenshot 2021-09-19 130359

As expected, creating a PNG from Word causes the same error. Just tried converting an Excel file and get the same.

Martin67776 commented 1 year ago

Same here

image
AobaSK commented 1 year ago

same

image
1z1y commented 11 months ago

same 相同 image

I tried to install the x64 but it didn't work; then I used x86 version, it worked

nagybarna1 commented 9 months ago

Hello All,

I've the same problem. Office is activated and pdf can be generated from word in native.

Log file: Instantiate word application via interop. System.InvalidCastException: Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: Hiba típustár/DLL betöltésekor. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)). at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease) at Microsoft.Office.Interop.Word.ApplicationClass.set_Visible(Boolean prop) at FileConverter.ConversionJobs.ConversionJob_Word.InitializeOfficeApplicationInstanceIfNecessary() at FileConverter.ConversionJobs.ConversionJob_Word.TryLoadDocumentIfNecessary() Failed to initialize office application. Fail: Fail to open document with Microsoft Office (check if your licence/installation are valid). Conversion Failed.

image

Anyone any solution or idea how to fix that issue?

Thank you

Tichau commented 8 months ago

File Converter is only compatible from Office 2013 and later. I should put a feedback to explain the needed version.