showens wrote:
Here's a code snippet; does anything look incorrect?I found the issue. The 'link' object has to be created each time a new cell is hyperlinked. I added this and everything worked again.ICell cmdLineCell = row.GetCell(4); cmdLineCell.SetCellValue(fullPath); string uriDir = Path.GetDirectoryName(fullPath); Uri linkAddr = new Uri(uriDir); try { link.Address = (linkAddr.AbsoluteUri); cmdLineCell.Hyperlink = (link); cmdLineCell.CellStyle = (hlink_style); } catch (Exception) { Console.WriteLine("******* ERROR CREATING HYPERLINK *********"); }
XSSFHyperlink link = new XSSFHyperlink(HyperlinkType.File);