I am trying to add a hyperlink to a shape, but it's getting error while executing.
Exception from HRESULT: 0x800A03EC
I have created a Shape , then I have assigned an address for the hyperlink but without success. Please is that functioning in C#. The code is working without the link. Please see below code :
InteropExcel.Range r = (InteropExcel.Range)iWS.Cells[rownum, currCol];
InteropExcel.Shape sh = (InteropExcel.Shape)iWS.Shapes.AddShape(MsoAutoShapeType.msoShape4pointStar, Convert.ToSingle(r.Left), Convert.ToSingle(r.Top), 20, 20);
sh.Hyperlink.Address = "c:\\test.txt";