I've heard jdk 1.3.1_03 has some problems with zip files.  Are you using
that version?

Regards,

Glen

----- Original Message -----
From: "Reto Badertscher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 07, 2002 6:29 AM
Subject: Writing zipped xls


> Hello,
>
> when i try to write a zipped excel file using:
>
>  FileOutputStream out = new FileOutputStream(zipFileName);
>  ZipOutputStream zip = new ZipOutputStream(out);
>  zip.putNextEntry(new ZipEntry(sheetFileName));
>  HSSFWorkbook wb = coux.writeSheet();
>  zip.write(workBook.getBytes());
>  zip.closeEntry();
>  zip.close();
>
> The archive with the Excel file is written. But later when opening the
> extracted file Excel crashes.
> When writing the same file using:
>
>  FileOutputStream out = new FileOutputStream(fileName);
>  HSSFWorkbook wb = countryXchange.writeSheet();
>  wb.write(out);
>  out.close();
>
> Everything is find.
> Could please someone give some hints what coul cause the error. Is there
> something else to be considered for writing zipped Excel file. When
> generating zipped text files i didn't had any problems.
>
> Thanks for any help.
>
> Reto
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>



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

Reply via email to