Thread: ms excel
View Single Post
  #6 (permalink)  
Old 07-15-2007, 01:20 PM
cool_gal cool_gal is offline
Member
 
Join Date: Jul 2007
Posts: 5
cool_gal is on a distinguished road
ÿÿ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤  ¸     ( ¸ å ¶ @ @ @ @ @ @ @ @ d  f f f f f f $ › h  b Š  ¤

weird characters like this, try opening word file wid notepad, u'll see small boxes

my code basically opens 2 files(one doc n other xls) as bufferedreader n bufferedwriter respectivel, n using readLine i read from doc n write() to xls

String s1="C:\\"+ft.getText()+".txt"; //Address of the doc file
String s2="C:\\"+ft.getText()+".xls";
BufferedReader fileIn = new BufferedReader(new FileReader(s1));

View view = new View();
String line;

while((line=fileIn.readLine())!=null)
{
view.setEntry(i,0,line);
i++;
view.write(s2,View.eFileExcel);
Reply With Quote