Error HRESULT E_FAIL has been returned from a call to a COM component.  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
User avatar
Shaun Luttin
User
Posts: 20
Joined: Tue Apr 17, 2018 12:13 am

Error HRESULT E_FAIL has been returned from a call to a COM component.

Post by Shaun Luttin »

We are making the following method call:

Code: Select all

this.axPXV_Control1.OpenDocFromPath(importFile);
The importFile exists and is a PDF file. The error we receive is this:
COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
Suggestions?
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8593
Joined: Wed Jan 03, 2018 6:52 pm

Re: Error HRESULT E_FAIL has been returned from a call to a COM component.

Post by TrackerSupp-Daniel »

Hello Shaun,
I saw your email letting us know you've solved this, Care to share the solution here for other forum users who may be looking for the same?
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
User avatar
Shaun Luttin
User
Posts: 20
Joined: Tue Apr 17, 2018 12:13 am

Re: Error HRESULT E_FAIL has been returned from a call to a COM component.  SOLVED

Post by Shaun Luttin »

We resolved the problem by properly installing the COM Server References. See our other post here:

viewtopic.php?f=66&t=30780&p=123631#p123631
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Error HRESULT E_FAIL has been returned from a call to a COM component.

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply