https://issues.apache.org/bugzilla/show_bug.cgi?id=47559





--- Comment #9 from Leif Nelson <[email protected]>  2009-07-23 07:56:45 PST ---
(In reply to comment #8)
> Hi Leif,
> 
> Was your original file attached here converted by the program you just 
> attached
> to https://issues.apache.org/bugzilla/show_bug.cgi?id=46419 ?
> 
> Regards,
> Dave

Dave-

Nope.  These are two separate issues, and I was "reminded" about the OpenOffice
issue by Yegor. :-)  The original file included here was generated with the
code snippet in the first bug report (in the email thread).  It was generated
by poi-3.5beta6.  I only included the program in the other bug to show the
workaround I had implemented to deal with OpenOffice!

The other attachments I added to this bug (testout.xlsb and
testout-converted.xlsx) were created as follows:

1)  testout.xlsx (created by code snippet below - poi-3.5beta6)
2)  testout.xlsb (testout.xlsx (from 1) opened with Windows Excel 2007 and
saved as xlsb)
3)  testout-converted.xlsx (testout.xlsb (from 2) opened with Mac Excel 2008
SP2 and saved as xlsx)

Hope that's more clear!

Thanks,
--Leif


import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;

import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

public class PoiTest {

  public static void main(String[] args) {
    try {
    XSSFWorkbook wb = new XSSFWorkbook();
    Sheet sheet = wb.createSheet();
    Row row = sheet.createRow(0);
    Cell cell = row.createCell(0);
    cell.setCellValue("Hi there");
    OutputStream out;
      out = new FileOutputStream(new File("testout.xlsx"));
    wb.write(out);
    out.flush();
    out.close(); 
    } catch (Exception e) {
      e.printStackTrace();
    }
  }

}

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to