Error : Unable to cast COM object of type 'System.__ComObject' to interface type 'Acrobat.AcroAVDoc'. This operation failed because the QueryInterfac

  • Thread starter Thread starter Kiran Reddi
  • Start date Start date
K

Kiran Reddi

Guest
unable to load the pdf in winform

already using
AxInterop.AcroPDFLib.dll
Interop.Acrobat.dll
Interop.AcroPDFLib.dll

Acrobat.AcroAVDoc oAvDoc2 = null;

oAvDoc2 = (Acrobat.AcroAVDoc)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.AVDoc"));

Error :

Unable to cast COM object of type 'System.__ComObject' to interface type 'Acrobat.AcroAVDoc'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{9B4CD3E8-4981-101B-9CA8-9240CE2738AE}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)). | System.InvalidCastException


R L Kiran

Continue reading...
 
Back
Top