Class ExcelReportHelper
java.lang.Object
ch.tocco.nice2.reporting.api.excel.ExcelReportHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
convertContentLengthToColumnWidth
(int contentLength) Converts the content length to the apache poi column withstatic int
convertExcelColumnWidthToCharacterWidth
(float excelWidth)
-
Method Details
-
convertContentLengthToColumnWidth
public static int convertContentLengthToColumnWidth(int contentLength) Converts the content length to the apache poi column with- Parameters:
contentLength
- for example number of characters of a string- Returns:
- column width (in units of 1/256th of a character width)
-
convertExcelColumnWidthToCharacterWidth
public static int convertExcelColumnWidthToCharacterWidth(float excelWidth)
-