How to create a link inside a cell using EPPlus

后端 未结 6 640
醉酒成梦
醉酒成梦 2021-02-01 12:40

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

6条回答
  •  离开以前
    2021-02-01 13:26

    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.

提交回复
热议问题