https://bz.apache.org/bugzilla/show_bug.cgi?id=64791

--- Comment #2 from [email protected] ---
Created attachment 37480
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37480&action=edit
XLS file with two different writeAccess records

XLS file was created with "new HSSFWorkbook", etc. then did:
HSSFWorkbook wb = new HSSFWorkbook();
...
InternalWorkbook internalWorkbook = wb.getInternalWorkbook();
WriteAccessRecord writeAccess = internalWorkbook.getWriteAccess();
writeAccess.setUsername("gvtrwhit");

then write out the bytes with "wb.write(...)"

So, simply the call to "getWriteAccess()" created the second record (which then
had its username field set).

BiffViewer shows this:
Offset=0x00000106(262) recno=5 sid=0x00E2 size=0x0000(0)
[INTERFACEEND/]

Offset=0x0000010A(266) recno=6 sid=0x005C size=0x0070(112)
[WRITEACCESS]
    .name = gvtrwhit
[/WRITEACCESS]

Offset=0x0000017E(382) recno=7 sid=0x005C size=0x0070(112)
[WRITEACCESS]
    .name = gvtsstag
[/WRITEACCESS]

Offset=0x000001F2(498) recno=8 sid=0x0042 size=0x0002(2)
[CODEPAGE]
    .codepage        = 4b0
[/CODEPAGE]

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to