worksheet.autoSizeColumn(<column num>); -- Naga (Srinivasa N Kadiyala) +1 617 678 9164
This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and any disclosure, copying, or distribution of this message, or the taking of any action based on it, by you is strictly prohibited. v.E.1 -----Original Message----- From: sunny8875 <[email protected]> Reply-To: POI Users List <[email protected]> Date: Friday, July 11, 2014 at 7:43 AM To: "[email protected]" <[email protected]> Subject: Re: XSSF data hidden in cell/column when cells merged >Yes whereas in the below snippet I am setting the cell style individually >for >each cell > > XSSFCell cell = row.createCell(0); > // Set cell style > cell.setCellStyle(cellStyle); > cell.setCellValue("some data goes here"); > cell = row.createCell(1); > // Set cell style > cell.setCellStyle(cellStyle); > cell.setCellValue(""); > > >-- >Srikanth > > > >-- >View this message in context: >http://apache-poi.1045710.n5.nabble.com/RE-XSSF-data-hidden-in-cell-column >-when-cells-merged-tp5715961p5715965.html >Sent from the POI - User mailing list archive at Nabble.com. > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [email protected] >For additional commands, e-mail: [email protected] >
