Hi All
   
  I am using POI HWPF. I am reading word document like this..
   
  public String getText(InputStream is) throws Exception {
        HWPFDocument wordDoc = new HWPFDocument(new POIFSFileSystem(is));
        Range range = wordDoc.getRange();
        return range.text();
    }
   
  I need to display the text in browser. New lines are not recognized and all 
the text is cooming as one blob.
   
  Is there anyway I can recognize these newline charecters and replace. I tried 
String.replaceAll("\n", "<br>"); 
  This does not work.
   
  Please let me know.
   
  bib/-    

                
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Reply via email to