RajeshatTCS

Hi

I am writing a code in c# which will find the version of pdf document. I am using Acrobat assemblies for that. I wrote the following code lines.I am using VS2005.

AcroPDFLib.AcroPDFClass apc=new AcroPDFLib.AcroPDFClass();

apc.LoadFile("c:\\licenceAgree.pdf");

bool loading=apc.LoadFile("c:\\licenceAgree.pdf");

object obj= apc.GetVersions();

When control comes at apc.LoadFile("c:\\licenceAgree.pdf"); it throws the following exception.

Unable to cast COM object of type 'AcroPDFLib.AcroPDFClass' to interface type 'AcroPDFLib.IAcroAXDocShim'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{3B813CE7-7C10-4F84-AD06-9DF76D97A9AA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

Please provide some help.

Thanks

Rajesh




Re: Visual C# General Unable to cast COM object of type 'AcroPDFLib.AcroPDFClass' to interface type 'AcroPDFLib.IAcroAXDocShim

fubak

I'm having the same issue. Any ideas




Re: Visual C# General Unable to cast COM object of type 'AcroPDFLib.AcroPDFClass' to interface type 'AcroPDFLib.IAcroAXDocShim

Euan Garden

I have no idea where this question should be asked but I know its not the SQL Server Tools Forum, let me try a better option perhaps






Re: Visual C# General Unable to cast COM object of type 'AcroPDFLib.AcroPDFClass' to interface type 'AcroPDFLib.IAcroAXDocShim

Peter Ritchie

You might find more people that could answer this question at the Adobe Acrobat SDK forum: http://www.adobeforums.com/cgi-bin/webx/.eed56a0/