I am using ClosedXML to generate excel from c# code.I need hyperlink on one particular column with multiple rows and every link is unique.
for (int i = 2; i <= result.Count + 1; i++)
{
ws.Cell(i, 44).Value = "Download";
url = folderPath + "type=testPhoto&userName=" + Convert.ToString(result[i - 2].testCode);
ws.Cell(i, 44).Hyperlink = new XLHyperlink(url, "Download");
ws.Cell(i, 44).Style.Font.FontColor = XLColor.AirForceBlue;
ws.Cell(i, 44).Style.Font.Underline = XLFontUnderlineValues.Single;
}
But this loop is taking too much time. Is there is any alternative to skip this loop.