On Wed, 2004-08-11 at 10:56, Bernd Freigang wrote:
> we tried to alter the writing properties example from the how-to ("Low-level
> Writing Functions In Details"), so that it loads a poi generated excel file
> and writes the property in this file, but it didn't work out. 
> 
> Looking through the developer code we found the following, which as we think
> might be the cause for the error:
> 
> ms.setFormatID(SectionIDMap.SUMMARY_INFORMATION_ID) calls ClassID.read()
> which turns a byte array from little-endian to big-endian.
> SUMMARY_INFORMATION_ID is already definded as big-endian, so no
> transformation should be needed. 
> If we use the isSummaryInformation function to test if the ClassID - which
> was generated by ms.setFormatID - is a valid SummaryInformation, it returns
> false. Looking at the isSummaryFunction it seems that it compares the
> original SUMMARY_INFORMATION_ID from the SectionIDMap with the turned
> SUMMARY_INFORMATION_ID. 
> 
> If this really is the source of the problem, is there a work around? If
> anyone of you has an example for writing an excel file and setting the
> summary properties, please send it to me or the list.

This is fixed now. Please checkout the latest CVS HEAD and see if it
works for you!

In the future, please report bugs through
<http://nagoya.apache.org/bugzilla/>. Thanks!

Best regards
Rainer Klute

                           Rainer Klute IT-Consulting GmbH
  Dipl.-Inform.
  Rainer Klute             E-Mail:  [EMAIL PROTECTED]
  K�rner Grund 24          Telefon: +49 172 2324824
D-44143 Dortmund           Telefax: +49 231 5349423


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

Reply via email to