Summary: | Documentation error - createFreezePane | ||
---|---|---|---|
Product: | POI | Reporter: | JDS <dajester2005> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | giorgiga |
Priority: | P2 | ||
Version: | 3.7-FINAL | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Test case |
Description
JDS
2010-06-03 14:06:20 UTC
The documentation was correct, but slightly confusing - you need to track the variable names, rather than blindly trusting the order of the params It's confusing though, so fixed in r951453. Hi guys, I dare to reopen this issue, as docs & implementation still don't seem to agree in 1.7. A1 B1 | C1 ---------- A2 B2 | C2 // C2 is at col 2, row 1 According to the docs, in order to get a split at cell C2 I should use sheet.createFreezePane(2, 1, 2, 1); but indeed that does not work as expected, while this one does sheet.createFreezePane(2, 1, 1, 2); Are you able to create a unit test that shows the result is wrong, or are you only able to verify the issue by loading the file in excel afterwards? If the former, please do create a unit test and upload it, so that can be used for testing the fix, and ensuring it stays correct into the future Created attachment 26578 [details]
Test case
Test case is attached. (sorry for taking so long, Nick - I forgot to add myself as a watcher) |