FileConverter icon indicating copy to clipboard operation
FileConverter copied to clipboard

Fail: Fail to open document with Microsoft Office - pdf not generated

Open nagybarna1 opened this issue 2 years ago • 8 comments

Hello All,

I've an issue with pdf generation from doc/docx files, however I've licensed and activate MS office installation in my PC.

In the log file I can see below error:

Tuesday, December 12, 2023 10:06:46 AM

Convert file C:\Konferenciaszervező\MiniCRM\PDF_generálás_kredit__tansi_kikuldes\Tanusitvany minta_11.23_Alapitvanyok.doc to C:\Konferenciaszervező\MiniCRM\PDF_generálás_kredit__tansi_kikuldes\Tanusitvany minta_11.23_Alapitvanyok.pdf. 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 Diagnostics-10h6m46s.zip FileConverter_reg_user_files.zip

Can you please check what cause the issue and advise?

Thank You, Barnabas

nagybarna1 avatar Dec 12 '23 09:12 nagybarna1

I encountered the same problem and don't know what happened!Fail to open document with Microsoft Office(check if your licence/installation are valid)

superpink617 avatar Dec 24 '23 14:12 superpink617

Hello, What are your version of Office ? File Converter is only compatible with Office 2013 and later.

Tichau avatar Jan 19 '24 18:01 Tichau

Hello All,

My office version is office 2019 professional plus, so I'm sure that the problem is different. Any advise?

Thanks and Regards, Barnabas

Adrien Allard @.***> ezt írta (időpont: 2024. jan. 19., P, 19:53):

Hello, What are your version of Office ? File Converter is only compatible with Office 2013 and later.

— Reply to this email directly, view it on GitHub https://github.com/Tichau/FileConverter/issues/350#issuecomment-1900942248, or unsubscribe https://github.com/notifications/unsubscribe-auth/BET5CH53D4TTWGPUVOZQLWLYPK6JXAVCNFSM6AAAAABAREAVNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQHE2DEMRUHA . You are receiving this because you authored the thread.Message ID: @.***>

nagybarna1 avatar Jan 25 '24 09:01 nagybarna1

Can you send me your log files just after failing a conversion ?

You can follow the step here: https://github.com/Tichau/FileConverter/wiki/Troubleshooting

Tichau avatar Jan 28 '24 17:01 Tichau

I think it would be helpful

Unable to cast COM object of Office Interop Word

RaidOpe avatar Mar 13 '24 08:03 RaidOpe

我解决了 但我忘了之前是如何解决的? 隐约记得是写在了office365

superpink617 avatar Mar 20 '24 13:03 superpink617

Hello Adrien,

Sure, it's still not woring for me. I've MS Office 2019 Pro license installed on my laptop (official one).

Please find logs and other files attached to check.

[image: image.png]

Let me know if you have any advice.

Thanks and Regards, Barnabás

Adrien Allard @.***> ezt írta (időpont: 2024. jan. 28., V, 18:28):

Can you send me your log files just after failing a conversion ?

You can follow the step here: https://github.com/Tichau/FileConverter/wiki/Troubleshooting

— Reply to this email directly, view it on GitHub https://github.com/Tichau/FileConverter/issues/350#issuecomment-1913668098, or unsubscribe https://github.com/notifications/unsubscribe-auth/BET5CH2E2GVO7ONB7XYH2QLYQ2DDZAVCNFSM6AAAAABAREAVNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGY3DQMBZHA . You are receiving this because you authored the thread.Message ID: @.***>

nagybarna1 avatar Mar 25 '24 10:03 nagybarna1