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?
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?