HI

I am using Ubuntu machine. Saving files in Ubuntu machine only. Is XSSF is
platform dependent? Its is working fine when I created the .xlsx file in
Windows machine. 

Please reply me at the earliest


The first lines of code is working fine for me.

XSSFFont a1Font = wb.getFontAt(a1Style.getFontIndex());
         
System.out.println(a1Cell.getRichStringCellValue().numFormattingRuns());
          System.out.println(a1Font.getUnderline()); // 1
          System.out.println(a1Font.getBold());      // true
          System.out.println(a1Font.getItalic());    // true

Then, i got an error here.
CellReference b1 = new CellReference("A1");
          XSSFRow b1Row = sheet.getRow(b1.getRow());
          XSSFCell b1Cell = b1Row.getCell(b1.getCol());
          XSSFRichTextString value = b1Cell.getRichStringCellValue();
          XSSFFont b1Font = value.getFontAtIndex(0);
          System.out.println(b1Font.getBold()); //null pointer exception




--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Unable-to-read-the-fully-formatted-text-from-XSSF-tp5714625p5714657.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]

Reply via email to