@ -36,6 +36,7 @@ import com.fr.third.v2.org.apache.poi.ss.usermodel.Cell;
import com.fr.third.v2.org.apache.poi.ss.usermodel.CellStyle ;
import com.fr.third.v2.org.apache.poi.ss.usermodel.CellStyle ;
import com.fr.third.v2.org.apache.poi.ss.usermodel.CellType ;
import com.fr.third.v2.org.apache.poi.ss.usermodel.CellType ;
import com.fr.third.v2.org.apache.poi.ss.usermodel.FormulaError ;
import com.fr.third.v2.org.apache.poi.ss.usermodel.FormulaError ;
import com.fr.third.v2.org.apache.poi.ss.usermodel.RichTextString ;
import com.fr.third.v2.org.apache.poi.ss.util.CellReference ;
import com.fr.third.v2.org.apache.poi.ss.util.CellReference ;
import com.fr.third.v2.org.apache.poi.util.POILogFactory ;
import com.fr.third.v2.org.apache.poi.util.POILogFactory ;
import com.fr.third.v2.org.apache.poi.util.POILogger ;
import com.fr.third.v2.org.apache.poi.util.POILogger ;
@ -315,7 +316,9 @@ public class SheetDataWriter implements Closeable {
}
}
case STRING : {
case STRING : {
if ( _sharedStringSource ! = null ) {
if ( _sharedStringSource ! = null ) {
XSSFRichTextString rt = new XSSFRichTextString ( cell . getStringCellValue ( ) ) ;
//XSSFRichTextString rt = new XSSFRichTextString(cell.getStringCellValue());
RichTextString rt = cell . getRichStringCellValue ( ) ;
int sRef = _sharedStringSource . addSharedStringItem ( rt ) ;
int sRef = _sharedStringSource . addSharedStringItem ( rt ) ;
int sRef = _sharedStringSource . addSharedStringItem ( rt ) ;
writeAttribute ( "t" , STCellType . S . toString ( ) ) ;
writeAttribute ( "t" , STCellType . S . toString ( ) ) ;