Hi,

When I run the following very simple progam and try to open the writen
.xls file with Excel XP I get
an error message saying that the file is corrupted and some formatting
information may got lost.
The error occurs only when the file I read in (template.xls) has been
created with Excel XP. When 
I use a file that has been written by Excel 97 everything is o.k. 

Am I doing something wrong or is this a bug?

public static void main(String[] args) {
        HSSFWorkbook wb;
                
        try {
         FileInputStream template = new FileInputStream("template.xls");
         FileOutputStream result = new FileOutputStream(new
File("result.xls"));
         POIFSFileSystem templatefs = new POIFSFileSystem(template);
         wb = new HSSFWorkbook(templatefs);
         wb.write(result);
        }
                catch (IOException e) {
        }


        }




Dr. Martin Lang
Cortex Brainware GmbH
EMail: [EMAIL PROTECTED]




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to