This project has moved and is read-only. For the latest updates, please go here.

same folder hyperlink not work.

Jun 7, 2012 at 10:21 AM

Hi to all.

I insert hyperlinks like below URL.

But samefoler URL was not work.
only releative link is work.

            row.Cell(3).Hyperlink = new XLHyperlink(@"../Test.png");  //work
            row.Cell(4).Hyperlink = new XLHyperlink(@"file/Test.xlsx"); //not work
            row.Cell(5).Hyperlink = new XLHyperlink(@"Test.xlsx"); //not work
            row.Cell(6).Hyperlink = new XLHyperlink(@"Test.png"); //not work

not work URL is linked inside of excel sheet.
(file:///C:\work\output.xlsx 'sheet1'Test.png)
What am I doing wrong?

(EXCEL 2010)

Jun 7, 2012 at 9:27 PM

The same folder can be accessed with a relative link: row.Cell(5).Hyperlink = new XLHyperlink(@"./Test.xlsx");

Jun 11, 2012 at 12:50 AM

Thank you for replying.  Same folder link works well.


Sep 13, 2013 at 7:45 PM

In visual basic 2010 don't work

ws.Cell(2, 1).Value = "Imagen1.jpg"

ws.Cell( 2, 1).Hyperlink = New XLHyperlink("Imagen1.jpg")

I need to link a image localized in same folder.

Now the link try to open a references in the cell in the worksheet.


Sep 17, 2013 at 5:38 PM