I tried to create a cell with a hyperlink in it. When I open the file there is no link only the text for creating the hyperlink. Is this a known problem? HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = wb.createSheet("My sheet"); HSSFRow row = sheet.createRow( (short) 0 ); HSSFCell cell = row.createCell( (short) 0 ); cell.setCellValue("=HYPERLINK(\"http.google.com\";\"Google\")"); // Write out the workbook FileOutputStream fileOut = new FileOutputStream("c:\\workbook.xls"); wb.write(fileOut); fileOut.close();
Part of the unresolved string formula issues, i presume.
*** Bug 9631 has been marked as a duplicate of this bug. ***
http://www.mail-archive.com/poi-user@jakarta.apache.org/msg00077.html Direction on how to address this from Andy: <snip> If you don't want to wait on us, all that needs to be done is simply create a low level record for what I think is called HLINK in the Excel 97 Developer's kit, then add it to the high level model (probably new cell type).. </snip> -alon
*** Bug 21118 has been marked as a duplicate of this bug. ***
*** Bug 20548 has been marked as a duplicate of this bug. ***
Any feel as to when this will be resolved?. Would really like to have this feature by October.
SuperLink had a client funding this effort but the deal fell through so it will be when someone steps up and volunteers. I've tried to assign deadlines to developers I'm not paying in the past...doesn't work that way.
As a workaround , why dont you use the HYPERLINK formula?
Sorry, disregard my last comment. But: cell.setCellFormula("HYPERLINK(\"http://google.com\",\"Google\")"); does indeed work! As proof, see test15353 in o.a.p.h.u.TestBugs.java Also see 23094