Excel workbooks produced by POI don't work when linked

Posted by Eric Nicolas on Stack Overflow See other posts from Stack Overflow or by Eric Nicolas
Published on 2008-11-18T18:22:47Z Indexed on 2010/06/11 12:52 UTC
Read the original article Hit count: 246

Filed under:
|
|

Here is what I'm doing :

  1. Create a workbook in memory (book = new HSSFWorkbook(), ...)
  2. Save it to disk (book.write(...))
  3. Open in Excel (ok)
  4. Create another workbook in Excel, which links to the first one (=PoiWorkbook?xls!A1)
  5. Close Excel

Then everytime I open the second workbook again, all the links are #N/A, unless I also open the POI-generated workbook at the same time.

I never saw this behaviour with standard workbooks created in Excel. Anyone has seen this and found a workaround ?

Thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about excel