Bug 47658 - no method to autosize rows
Summary: no method to autosize rows
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: SS Common (show other bugs)
Version: 3.5-dev
Hardware: All All
: P2 enhancement with 4 votes (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-06 20:46 UTC by antsleg
Modified: 2017-02-23 16:38 UTC (History)
3 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description antsleg 2009-08-06 20:46:04 UTC
in org.apache.poi.hssf.usermodel.HSSFSheet,there is a method autoSizeColumn() to set column autosize in worksheet,but there is no method to set row autosize.
Comment 1 antsleg 2009-08-06 20:57:10 UTC
for example:

we can autosize columns like this:
------------------------------------------------------------------------
for (int col = 0; col < colCount; col++)  //colCount - count of columns
    sheet.autoSizeColumn((short) col);    //sheet - an object of HSSFSheet
------------------------------------------------------------------------
but we can't autosize rows,because there is no autoSizeRow()