You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Ve...@ext.empireblue.com on 2004/06/03 08:19:47 UTC

Excel file generated with some special characters.. ( Urgent!!! )

Guys,

   I have written simple Excel file generation.. But When I open the 
generated file, it contains some special characters.. :-((( I am using 2.5 
version of POI,,
here is the code I written.. When I save the generated file.. the default 
save as type is "Text ( Tab delimited)(*.tab) ".. its very urgent.. any 
help


I am using POI 2.5 and Excel 2000..


import org.apache.poi.hssf.usermodel.*;
import java.io.*;
public class TestXL
{
        public static void main(String args[])
        {
                try
                {
                        System.out.println("I am in the main method1 of 
TestXL");
                        HSSFWorkbook wb = new HSSFWorkbook();
                HSSFSheet sheet1 = wb.createSheet("new sheet");
                //HSSFSheet sheet2 = wb.createSheet("second sheet");
                FileOutputStream fileOut = new 
FileOutputStream("workbook.xls");
                        wb.write(fileOut);
                        fileOut.close();
                }catch(Exception exc)
                {
                        exc.printStackTrace();
                }
        }
}
Thanks and Regards,

Venky ( VENKATESAN S APPUSAMY )
IBM Global Services India Pvt. Ltd.
Subramanya Arcade, 
12, Bannerghatta Main Road
Bangalore - 560 029, India.
Tel: (Board) 91-80-2063000 Extn - 3307
        (Direct) 91-80-2063307
"WellChoice, Inc." made the following
 annotations on 06/03/2004 02:26:12 AM
------------------------------------------------------------------------------
Attention!  This electronic message contains information that may be legally confidential and/or privileged.  The information is intended solely for the individual or entity named above and access by anyone else is unauthorized.  If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful.  If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Release/Disclosure Statement