You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2011/12/09 17:29:09 UTC

DO NOT REPLY [Bug 52314] New: SheetUtil.getColumnWidth could be more flexible.

https://issues.apache.org/bugzilla/show_bug.cgi?id=52314

             Bug #: 52314
           Summary: SheetUtil.getColumnWidth could be more flexible.
           Product: POI
           Version: 3.8-dev
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POI Overall
        AssignedTo: dev@poi.apache.org
        ReportedBy: jim-apache@spudsoft.co.uk
    Classification: Unclassified


Created attachment 28061
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28061
Patch to make column width calculations a bit more useful.

Headers rows in a sheet often contain titles that are expected to run over into
subsequent columns, so I'd like to be able to ignore some rows at the start.
Measuring every single cell can be prohibitively expensive for large sheets,
and typically the results are no better than can be obtained from the first few
rows.

With the current level of privacy in SheetUtil it's awkward to make use of it.
It would be more useful if SheetUtil was refactored to have:
1. A new method that took first/last row index as parameters.
2. The bulk of getColumnWidth extracted to be getCellWidth so callers can use
it any way they want.

-- 
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


DO NOT REPLY [Bug 52314] SheetUtil.getColumnWidth could be more flexible.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52314

Yegor Kozlov <ye...@dinom.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Yegor Kozlov <ye...@dinom.ru> 2011-12-16 10:01:20 UTC ---
Applied in r1215079

Yegor

-- 
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