hi am creating .xls file by using POI library.
This code will create xls file, but it's not giving space between border of cell and its content.how can i set space to content type property.
Thanks
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet(styleSheetName);
HSSFRow row;
HSSFCell cell;
HSSFCellStyle hedarStyle = wb.createCellStyle();
HSSFFont headerFont = wb.createFont();
headerFont.setFontName(HSSFFont.FONT_ARIAL);
headerFont.setFontHeightInPoints((short) 8);
headerFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
headerFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
headerFont.setColor(HSSFColor.BLACK.index);
hedarStyle.setFont(headerFont);
hedarStyle.setAlignment(HSSFCellStyle.ALIGN_RIGHT);
hedarStyle.setWrapText(true);
hedarStyle.setVerticalAlignment(hedarStyle.VERTICAL_TOP);
row = sheet.createRow(0);
row.setRowStyle(hedarStyle);
cell = row.createCell((short)0);
cell.setCellValue(new HSSFRichTextString("1"));
cell.setCellStyle(hedarStyle);
cell = row.createCell((short)1);
cell.setCellValue(new HSSFRichTextString("2"));
cell.setCellStyle(hedarStyle);