且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用EPPlus在单元格内创建链接

更新时间:2023-02-13 17:11:32

以下代码对我很好。

string FileRootPath = "http://www.google.com";
_Worksheet.Cells[intCellNumber, 1].Formula = "HYPERLINK(\"" + FileRootPath + "\",\"" + DisplayText + "\")";

我希望这将有助于您。

快乐编码!!