Thanks for your reply, Jason.  I guess I was a little surprised to see excel
complain about it as well.
What I'm going it pretty basic, really.
  HSSFWorkbook Workbook = new HSSFWorkbook();
  HSSFSheet Worksheet = Workbook.createSheet("Sheet1");
  ...
  Then I iterate to create the rows and columns.

The only non-straightfoward piece is that I'm not writing it out to the
filesystem - I'm attaching it as a mime attachment to an email.  I'm using
MS-Excel 2002/XP (SP2), so it might be a behaviour unique that product
version or something.

I guess the reason I didn't consider that it might be a bug, is that it's
sort of acting the way I would expect.  I'm not attaching any PropertySets
to the document (hpsf.DocumentSummaryInformation or otherwise), so ms-excel
wouldn't find them.  The only way to create these PropertySets appears to be
using the Mutable classes, but I'm still pretty new to POI, so I could be
missing something.
I'll attach the .xls and a screenshot of the error thrown by ms-excel.  I'd
be curious to know if other people have the same issue.

Thanks in advance,
Curtis



-----Original Message-----
From: Height, Jason [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 29, 2004 4:10 PM
To: 'POI Developers List'
Subject: RE: HPSF Mutables


Curtis,

That doesn't seem to be something that I would expect excel to complain
about. Sounds like a bug to me.

Perhaps provide a little detail about how you are writing the HSSF
spreadsheet.

Jason

-----Original Message-----
From: Ling, Curtis [mailto:[EMAIL PROTECTED] 
Sent: Friday, 30 April 2004 2:25 AM
To: '[EMAIL PROTECTED]'
Subject: HPSF Mutables

Hello.
I'm using POI to export ms-excel compatible spreadsheets.  When I open the
spreadsheets using ms-excel, I get a "Lost document summary information"
error, which I'm attributing to the lack of a PropertySet in the document.
I'm following the example in the fourth section of the "HPSF HOW-TO", which
details how to write Properties using MutablePropertySet, MutableSection and
MutableProperty; but these classes are not present in the v2.5 final release
of POI.  I see that they are part of the CVS Source Tree, so I was wondering
if there was a binary (.jar) somewhere which included these classes, or if
it would be possible for someone to share theirs with me.

Sorry to be a pest.

Curtis Ling

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

----------------------------------------------------------------------------
----------------------------------------
This e-mail (including attachments) is confidential information of
Australian Submarine Corporation Pty Limited (ASC).  It may also be legally
privileged.  Unauthorised use and disclosure is prohibited.  ASC is not
taken to have waived confidentiality or privilege if this e-mail was sent to
you in error. If you have received it in error, please notify the sender
promptly.  While ASC takes steps to identify and eliminate viruses, it
cannot confirm that this e-mail is free from them.  You should scan this
e-mail for viruses before it is used.  The statements in this e-mail are
those of the sender only, unless specifically stated to be those of ASC by
someone with authority to do so.

Attachment: ML_PSV_STATIC_2004_04_29.xls
Description: MS-Excel spreadsheet

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

Reply via email to