DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31749>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31749

{Need help urgently}[This is critical] workbook.write() corrupts the file......?





------- Additional Comments From [EMAIL PROTECTED]  2004-10-25 12:09 -------
Okay... I think I've narrowed down the issue.  It's actually an instance of the
really wierd problem I encountered in the way Excel sometimes writes it's
continue records.  See
http://www.jroller.com/page/gstamp/20040817#excel_and_the_escher_format for more
information.

Basically what's happening at the moment is the system is (incorrectly) trying
to call processContinueRecord() for the preceeding OBJ record.  Probably what
should happen in this case is that the continue record is applied last record
capable of handling a continue (or left along otherwise).

You can hack around this problem by altering the line:

179 in RecordFactory.java (CVS HEAD) to:

                            if (rectype == ContinueRecord.sid &&
                                ! (last_record instanceof ContinueRecord) && //
include continuation records after
                                ! (last_record instanceof UnknownRecord) && //
unknown records or previous continuation records
                                ! (last_record instanceof ObjRecord) &&
                                ! (last_record instanceof TextObjectBaseRecord) 
                            )


Unfortunately this doesn't completely cure the problem.  There still seems to be
messages that come up when you open the sheet.

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

Reply via email to