Exception with EXCEL 2007 API

S

Sharad Birajdar

Hi,

I've written an office interface with VS2003. This

interface works fine with all office version except

office 2007. It throws folllowing the expection

at

System.RuntimeType.ForwardCallToInvokeMember(String

memberName, BindingFlags flags, Object target,

Int32[] aWrapperTypes, MessageData& msgData)

at

Microsoft.Office.Interop.Excel.Shape.get_Hyperlink(

) at

Call to delete function throws this exception.

(Following is the code)

Excel.Shape newShp =

xlSheet.Shapes.Item(xlSheet.Shapes.Count);

address =

address.Replace(cb.objectId,propBean.objectId);

newShp.Hyperlink.Delete();

this hyperlink property has value as "<error: an

exeception of type:

{System.Runtime.Intropservices.COMException}

occured>"



Can anybody help me in this regard?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top