FileConverter icon indicating copy to clipboard operation
FileConverter copied to clipboard

Fail to open document with Microsoft Office (Office 10)

Open ray241278 opened this issue 4 years ago • 8 comments

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

ray241278 avatar Mar 11 '21 15:03 ray241278

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

CBest3 avatar Jun 15 '21 02:06 CBest3

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.

controlb avatar Sep 19 '21 12:09 controlb

Same here image

Martin67776 avatar May 19 '23 12:05 Martin67776

same image

AobaSK avatar Jun 28 '23 09:06 AobaSK

same 相同 image

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

1z1y avatar Oct 20 '23 11:10 1z1y

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

nagybarna1 avatar Dec 12 '23 09:12 nagybarna1

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

Tichau avatar Jan 19 '24 16:01 Tichau