please help me, how to preview microsoft .docx, .xlsx document. i.m using apache poi.
but its not wrap paragraph. what is the best way?
Label l = new Label();
l.setContentMode(ContentMode.PREFORMATTED);
FileInputStream fis = new FileInputStream(model.getFile_path1());
org.apache.poi.xwpf.extractor.XWPFWordExtractor oleTextExtractor
= new XWPFWordExtractor(new XWPFDocument(fis));
l.setValue(oleTextExtractor.getText());