This project has moved. For the latest updates, please go here.

same folder hyperlink not work.

Jun 7, 2012 at 9: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 8:27 PM

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

Jun 10, 2012 at 11:50 PM

Thank you for replying.  Same folder link works well.


Sep 13, 2013 at 6: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 4:38 PM