How to create a link inside a cell using EPPlus

IEnumerator picture IEnumerator · Oct 3, 2011 · Viewed 23k times · Source

I am trying to figure out how to write a Hyperlink inside a cell using EPPlus instead of the cell containing the link text. I need it to be recognized as a link and be clickable.

Any help is appreciated.

Answer

Han picture Han · Nov 6, 2012

This is the other way to do:

var cell = sheet.Cells["A1"];
cell.Hyperlink = new Uri("http://www.google.com");
cell.Value = "Click me!";

I have tested. It works fine.