Click here to Skip to main content
16,018,534 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am working on Windows Forms application using C#, .net Framework 4.5 and also using acrobat reader PDF component Interop.AcroPDFLib
I was earlier creating PDF and running in C# apps then it was working fine, but last 1 day, I ran into new issue

An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in AxInterop.AcroPDFLib.dll
Additional information: Error HRESULT E_FAIL has been returned from a call to a COM component.


While loading PDF on given line:
axAcroPDF1.LoadFile(_URL);


Can anyone provide me any help, how can I resolve this issue. I tried this link https://social.msdn.microsoft.com/Forums/en-us/08adc799-e705-47d1-940c-3f91ef442cec/target-x86-platform-in-vc-express?forum=Vsexpressvcs[^] but don't working for me.

thanks
@anjankant
Posted
Comments
Richard MacCutchan 9-Jul-15 11:41am    
You need to see if there is any more information provided (maybe by GetLastError()) after the failure. Or maybe check the Acro documentation.
[no name] 14-Jul-15 4:07am    
If we open Acrobat document directly (not apps) then it is opening perfectly, while from in our apps its throwing error.
Richard MacCutchan 14-Jul-15 4:09am    
You probably need to talk to Adobe.
[no name] 21-Jul-15 7:03am    
Sure Richard, I have put on hold this issue. I have post this issue in adobe Reader forum post. thanks for your suggestion

1 solution

I just recreated PDF and tried again, everything went well.

thanks
@anjankant
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900