Summary: | User defined styles are not correctly applied to cells | ||
---|---|---|---|
Product: | POI | Reporter: | skiping |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.7-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: | Differences between POI-Excel generated files |
Description
skiping
2010-11-19 12:04:20 UTC
Assuming you're already tried this with POI 3.7 final Can you try creating two simple files: * One where you apply the styling using POI * One where you emulate what you'd do with POI except within excel (File 1 won't look right in excel, but file 2 should do) Now, use org.apache.poi.hssf.dev.BiffViewer to look at what's actually in the files. (You'll want small files to reduce the number of records). Look for style records, and the record(s) for the styled cell, and see how they differ between the two We'll need this information + the files to be able to narrow down what we're doing wrong in poi Created attachment 26321 [details]
Differences between POI-Excel generated files
I'm sending you the requested files plus the original file where the style were defined. The main difference I see is that POI creates a row and a cell, while Excel creates the row, the cell and an extended format: cell record type. When opening the POI generated file with OOoCalc and saving in a new location the new file writes also the extended format: cell record type and it's viewable in MSExcel. |