poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48751] New: HSSF: Hyperlink to a textmark does not work.
Date Tue, 16 Feb 2010 13:55:58 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48751

           Summary: HSSF: Hyperlink to a textmark does not work.
           Product: POI
           Version: 3.6
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: Berthold.Froese@Astrium.EADS.net


Here the failure description:

- Create an Excel cell
- Append a hyperlink to the Excel cell.

Example:
HSSFSheet sheet = wb.getSheet("Hyperlinks");
HSSFRow hssfRow = sheet.createRow(20);
HSSFCell cell = hssfRow.createCell(1);
cell.setCellValue("Zelle B21");

link.setAddress("excelTest.xls.orig.xls");
link.setLabel("ZelleA11");
link.setTextMark("ZelleA11");

cell.setHyperlink(link);

- If you perform a system output of the cell hyperlink values they are are
available for this cell.

- Store the workbook to a new excel file.
- Open this file via Excel
- The hyperlink is broken. The textmark is NOT available for the cell.

if you read the new file vio POI you get the following values for this cell:

cell.getStringCellValue(): Zelle B21
Address: excelTest.xls.orig.xls
Label: file
ShortFilename: excelTest.xls.orig.xls
Hyperlink Type: 0
TextMark: null

If you need more information please let me know.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message