You were right, I was reading byte code and writing it in a word file using
XSSF.
I tried using BufferedReader also, it just copies all the formatting in text
and writes it as a part of doc file.

Here is my code -

            BufferedReader in = new BufferedReader(new
InputStreamReader(link.openStream()));
                 String inputLine;
                while ((inputLine = in.readLine()) != null)
                    System.out.println(inputLine);
             in.close();   

This inputLine contains all the formatting, like, 
"
{\rtf1\ansi\ansicpg1252\paperh15840\paperw12240\margl720\margr720\margt720\margb720\psz1{\colortbl\
"

Please help.



--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Downloading-Data-in-Microsoft-Word-format-using-Apache-POI-tp5718871p5718880.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