poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9576] - [PATCH] DBCELL, INDEX EXTSST (was Acess 97 import)
Date Tue, 27 May 2003 17:42:15 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9576>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9576

[PATCH] DBCELL, INDEX EXTSST (was Acess 97 import)





------- Additional Comments From apache@grau.net  2003-05-27 17:42 -------
Hi,

I just added two attachments for this bug.
The first is a test file generated by HSSF.
If I import this directly into access I get an error message (table not in
expected format).
I loaded this file into Excel and saved it as test-ms.xls, which is the second
attachment I just added. The second attachment can be imported into Access
without any problems. 

I used poi-pre2.0 src with the patch from 2003-03-10 applied. (I get the same
results if the patch is not applied).

I'd be really glad if someone could look into this, or tell me where I should
start to look :-)

Thanx in advance,

  Guenther


The Java-code to create the file is very simple:
public class Test {
  public static void main(String[] args) {
  	try {
      HSSFWorkbook workbook = new HSSFWorkbook();
      HSSFSheet sheet = workbook.createSheet("Hallo");
      HSSFRow row = sheet.createRow(0);
      short cellIndex = 0;
      HSSFCell cell = row.createCell(cellIndex);
      cell.setCellValue("Hello world");
      FileOutputStream output = new FileOutputStream("c:/test.xls");
  	  workbook.write(output);
  	  output.close();
  	} catch (Exception e) {
  	  e.printStackTrace();
  	}
      }
}

Mime
View raw message