View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sharad Birajdar Sharad Birajdar is offline
external usenet poster
 
Posts: 1
Default Exception with EXCEL 2007 API

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(Strin g

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?