using System; using System.Text; using System.IO; using NPOI.HSSF.UserModel; using NPOI.HPSF; using NPOI.POIFS.FileSystem; using NPOI.HSSF.Util; using NPOI.SS.UserModel; namespace AddHyperlinkInXls { class Program { static void Main(string[] args) { InitializeWorkbook(); ////cell style for hyperlinks ////by default hyperlinks are blue and underlined CellStyle hlink_style = hssfworkbook.CreateCellStyle(); Font hlink_font = hssfworkbook.CreateFont(); hlink_font.Underline = (byte)FontUnderlineType.SINGLE; hlink_font.Color = HSSFColor.BLUE.index; hlink_style.SetFont(hlink_font); Cell cell; Sheet sheet = hssfworkbook.CreateSheet("Hyperlinks"); //URL cell = sheet.CreateRow(0).CreateCell(0); cell.SetCellValue("URL Link"); H