Microsoft has not published a specification of BIFF5 on its own: [MS-XLS] covers only BIFF8. The facts on this page come from the Microsoft Excel 97 Developer’s Kit (Microsoft Press, 1997), whose BIFF chapter describes BIFF5 and BIFF7 (Excel 95, which writes the same version number) alongside BIFF8. All numbers are little-endian.
Container and stream
A BIFF5 workbook is an OLE compound file (signature
D0 CF 11 E0 A1 B1 1A E1) whose workbook data is in a stream named
Book; BIFF8 renamed it Workbook. Like BIFF8, the stream is
a series of substreams, each from a BOF record to an EOF record: the workbook globals
first, then one per sheet.
Records
| Offset | Size | Field | Meaning |
|---|---|---|---|
0 | 2 | record number | The record type. |
2 | 2 | length | Length of the data. |
4 | length | data | The record’s fields. |
In BIFF7 and earlier a record may be at most 2,084 bytes including the 4-byte
header, so its data is at most 2,080 bytes (BIFF8 allows 8,224). Longer data carries
on in CONTINUE records (0x003C). Fields marked reserved are to be
ignored when read; those marked “must be zero” must be written as 0.
BOF (0x0809)
| Offset | Size | Field | Meaning |
|---|---|---|---|
0 | 2 | vers | 0x0500 for BIFF5 and BIFF7 (0x0600 is BIFF8). |
2 | 2 | dt | Substream type: 0x0005 workbook globals, 0x0006 Visual Basic module, 0x0010 worksheet or dialog sheet, 0x0020 chart, 0x0040 Excel 4.0 macro sheet, 0x0100 workspace file. |
4 | 2 | rupBuild | Build identifier (internal). |
6 | 2 | rupYear | Build year (internal). |
The BIFF5 BOF record is 8 bytes; BIFF8 adds 8 more. Older versions used other
record numbers for BOF, which is how they are told apart: 0x0009 BIFF2,
0x0209 BIFF3, 0x0409 BIFF4. BIFF5 and BIFF7 cannot be told
apart from the BOF record.
Text
BIFF5 has no Unicode and no shared string table. Text is stored as byte strings in
the workbook’s code page (the CODEPAGE record, 0x0042),
with a length before them: one byte for short names such as sheet names in
BOUNDSHEET (0x0085, which otherwise has the same stream
offset, visibility and sheet type as in BIFF8), two bytes for cell text in
LABEL (0x0204: row, column, XF index, then the string).
Cell text with character formatting uses RSTRING. The BIFF8 records
SST, EXTSST and LABELSST do not exist in
BIFF5.
Cell records
The Developer’s Kit lists these record types as holding cell data in BIFF5, BIFF7 and BIFF8: ARRAY, BLANK, BOOLERR, FORMULA, LABEL, LABELSST (BIFF8 only), MULBLANK, MULRK, NUMBER, RK, RSTRING, SHRFMLA and STRING. MULBLANK, MULRK and SHRFMLA were new in BIFF5. Apart from text, their layouts are those described for BIFF8; cells are grouped in row blocks with DBCELL and INDEX records in the same way.
EXTERNSHEET (0x0017)
In BIFF7 and earlier there is one EXTERNSHEET record per referenced workbook or
sheet, forming a table whose size is given by the EXTERNCOUNT record
(cxals). Each holds cch (1 byte), the length of the file
name, and the name rgch. (BIFF8 replaced this with a single record of
XTI entries pointing at SUPBOOK records.) The first character of the name says what
it is:
| Value | Name | Meaning |
|---|---|---|
0x00 | chEmpty | Reference to an empty workbook name. |
0x01 | chEncode | The file name is encoded, using the keys below. |
0x02 | chSelf | A reference to this workbook. |
| Key in an encoded name | Name | Meaning |
|---|---|---|
0x01 | chVolume | A drive letter follows; for a UNC name, @ stands for the leading backslashes. |
0x02 | chSameVolume | Same drive as the referring workbook. |
0x03 | chDownDir | Into a subdirectory (elsewhere in the name, 0x03 marks a DDE or OLE link). |
0x04 | chUpDir | Up to the parent directory. |
0x05 | chLongVolume | Not used. |
0x06 | chStartupDir | The startup directory. |
0x07 | chAltStartupDir | The alternate startup directory. |
0x08 | chLibDir | The Library directory. |
All BIFF5 and BIFF7 record types
The Excel 97 Developer’s Kit lists every record it documents in one alphabetical table, says its descriptions apply to BIFF5, BIFF7 and BIFF8 alike, and gives a separate table of the records that are new in BIFF8 (“File Format Versions”, “BIFF Record Order”, and for charts “New and Changed Chart Records”). The records below are therefore the kit’s list with the BIFF8-only ones taken out; those marked changed have a different layout in BIFF8, so their BIFF8 description on the BIFF8 pages does not apply as it stands. Numbers are as the kit prints them.
| Number | Record | Number | Record | Number | Record |
|---|---|---|---|---|---|
0x000A | EOF | 0x0050 | DCON | 0x00A1 | SETUP |
0x000C | CALCCOUNT | 0x0051 | DCONREF | 0x00A9 | COORDLIST |
0x000D | CALCMODE | 0x0052 | DCONNAME | 0x00AB | GCW |
0x000E | PRECISION | 0x0055 | DEFCOLWIDTH | 0x00AE | SCENMAN |
0x000F | REFMODE | 0x0059 | XCT (changed) | 0x00AF | SCENARIO |
0x0010 | DELTA | 0x005A | CRN | 0x00B0 | SXVIEW |
0x0011 | ITERATION | 0x005B | FILESHARING | 0x00B1 | SXVD |
0x0012 | PROTECT | 0x005C | WRITEACCESS (changed) | 0x00B2 | SXVI |
0x0013 | PASSWORD | 0x005D | OBJ (changed; read as in LibreOffice's xiescher.cxx, with the polygon points in COORDLIST 0x00A9) | 0x00B4 | SXIVD |
0x0014 | HEADER | 0x005E | UNCALCED | 0x00B5 | SXLI |
0x0015 | FOOTER | 0x005F | SAVERECALC | 0x00B6 | SXPI |
0x0016 | EXTERNCOUNT | 0x0060 | TEMPLATE | 0x00B8 | DOCROUTE |
0x0017 | EXTERNSHEET | 0x0063 | OBJPROTECT | 0x00B9 | RECIPNAME |
0x0019 | WINDOWPROTECT | 0x007D | COLINFO | 0x00BC | SHRFMLA |
0x001A | VERTICALPAGEBREAKS (changed) | 0x007E | RK | 0x00BD | MULRK |
0x001B | HORIZONTALPAGEBREAKS | 0x007F | IMDATA | 0x00BE | MULBLANK |
0x001C | NOTE (changed) | 0x0080 | GUTS | 0x00C1 | MMS |
0x001D | SELECTION | 0x0081 | WSBOOL | 0x00C2 | ADDMENU |
0x0022 | 1904 | 0x0082 | GRIDSET | 0x00C3 | DELMENU |
0x0026 | LEFTMARGIN | 0x0083 | HCENTER | 0x00C5 | SXDI |
0x0027 | RIGHTMARGIN | 0x0084 | VCENTER | 0x00CD | SXSTRING |
0x0028 | TOPMARGIN | 0x0085 | BOUNDSHEET (changed) | 0x00D0 | SXTBL |
0x0029 | BOTTOMMARGIN | 0x0086 | WRITEPROT | 0x00D1 | SXTBRGIITM |
0x002A | PRINTHEADERS | 0x0087 | ADDIN | 0x00D2 | SXTBPG |
0x002B | PRINTGRIDLINES | 0x0088 | EDG | 0x00D3 | OBPROJ |
0x002F | FILEPASS | 0x0089 | PUB | 0x00D5 | SXIDSTM |
0x003C | CONTINUE | 0x008C | COUNTRY | 0x00D6 | RSTRING |
0x003D | WINDOW1 | 0x008D | HIDEOBJ | 0x00D7 | DBCELL |
0x0040 | BACKUP | 0x0090 | SORT | 0x00DA | BOOKBOOL |
0x0041 | PANE | 0x0091 | SUB | 0x00DC | SXEXT (changed) |
0x0042 | CODEPAGE | 0x0092 | PALETTE | 0x00DD | SCENPROTECT |
0x004D | PLS | 0x0094 | LHRECORD | 0x00DE | OLESIZE |
0x0095 | LHNGRAPH | 0x0096 | SOUND | 0x00DF | UDDESC |
0x0098 | LPR | 0x0099 | STANDARDWIDTH | 0x00E0 | XF (changed) |
0x009A | FNGROUPNAME | 0x009B | FILTERMODE | 0x00E1 | INTERFACEHDR |
0x009C | FNGROUPCOUNT | 0x009D | AUTOFILTERINFO | 0x00E2 | INTERFACEEND |
0x009E | AUTOFILTER | 0x00A0 | SCL | 0x00E3 | SXVS |
0x00EA | TABIDCONF | 0x0201 | BLANK | 0x0221 | ARRAY |
0x013D | TABID | 0x0203 | NUMBER | 0x0223 | EXTERNNAME |
0x01A5 | FILESHARING2 | 0x0204 | LABEL | 0x0225 | DEFAULTROWHEIGHT |
0x0200 | DIMENSIONS (changed) | 0x0205 | BOOLERR | 0x0231 | FONT |
0x0207 | STRING | 0x0236 | TABLE | ||
0x0208 | ROW | 0x023E | WINDOW2 (changed) | ||
0x020B | INDEX (changed) | 0x0293 | STYLE | ||
0x0218 | NAME | 0x0406 | FORMULA | ||
0x041E | FORMAT | ||||
0x0809 | BOF (changed) |
Two numbers in the kit’s list differ from the other sources: the kit heads FORMULA as
406h and FONT as 231h. Those are the BIFF4 and BIFF3 numbers.
For BIFF5 the Rentz description (excelfileformat.txt sections 5.50 and 5.45) gives
FORMULA 0x0006 and FONT 0x0031, as do [MS-XLS] for BIFF8 and
LibreOffice (BIFF5_ID_FORMULA = 0x0006, BIFF5_ID_FONT = 0x0031 in
biffhelper.hxx), and the real BIFF5 file testEXCEL_5.xls (Apache POI test data)
holds records 0x0006 and 0x0031 and none numbered 0x0406 or
0x0231. So the BIFF5 numbers are 0x0006 and 0x0031; the viewer also
accepts the other two, as xlrd does (XL_FORMULA_OPCODES = (0x0006, 0x0406, 0x0206)).
The kit also heads CODENAME as 42h (the number of CODEPAGE) in one place and
1BAh in its list of new BIFF8 records; CODENAME is BIFF8 only.
Chart records
Chart substreams use the records above 0x1000. In BIFF5 and BIFF7
they are all of the kit’s chart records except the eight new in BIFF8
(0x1060 to 0x1067: FBI, BOPPOP, AXCEXT, DAT, PLOTGROWTH,
SIINDEX, GELFRAME, BOPPOPCUSTOM):
| Number | Record | Number | Record | Number | Record |
|---|---|---|---|---|---|
0x1001 | UNITS | 0x101C | CHARTLINE | 0x103D | DROPBAR |
0x1002 | CHART | 0x101D | AXIS | 0x103E | RADAR (changed) |
0x1003 | SERIES (changed) | 0x101E | TICK (changed) | 0x103F | SURFACE (changed) |
0x1006 | DATAFORMAT | 0x101F | VALUERANGE | 0x1040 | RADARAREA |
0x1007 | LINEFORMAT (changed) | 0x1020 | CATSERRANGE | 0x1041 | AXISPARENT |
0x1009 | MARKERFORMAT (changed) | 0x1021 | AXISLINEFORMAT | 0x1043 | LEGENDXN |
0x100A | AREAFORMAT (changed) | 0x1022 | CHARTFORMATLINK (not used) | 0x1044 | SHTPROPS (changed) |
0x100B | PIEFORMAT | 0x1024 | DEFAULTTEXT | 0x1045 | SERTOCRT |
0x100C | ATTACHEDLABEL (changed) | 0x1025 | TEXT (changed) | 0x1046 | AXESUSED |
0x100D | SERIESTEXT | 0x1026 | FONTX | 0x1048 | SBASEREF |
0x1014 | CHARTFORMAT | 0x1027 | OBJECTLINK | 0x104A | SERPARENT |
0x1015 | LEGEND (changed) | 0x1032 | FRAME | 0x104B | SERAUXTREND |
0x1016 | SERIESLIST | 0x1033 | BEGIN | 0x104E | IFMT |
0x1017 | BAR (changed) | 0x1034 | END | 0x104F | POS |
0x1018 | LINE (changed) | 0x1035 | PLOTAREA | 0x1050 | ALRUNS |
0x1019 | PIE (changed) | 0x103A | 3D | 0x1051 | AI |
0x101A | AREA (changed) | 0x103C | PICF (changed) | 0x105B | SERAUXERRBAR |
0x101B | SCATTER (changed) | 0x105D | SERFMT (changed) |
Records that do not exist in BIFF5
New in BIFF8, per the kit: CF, CODENAME, CONDFMT, DCONBIN, DSF, DV, DVAL, EXTSST,
HLINK, LABELSST, MSODRAWING, MSODRAWINGGROUP, MSODRAWINGSELECTION, PARAMQRY (which
reuses SXEXT’s number 0x00DC), PROT4REV, PROT4REVPASS, QSI, REFRESHALL,
SST, SUPBOOK, SXDB, SXDBEX, SXEX, SXFDBTYPE, SXFILT, SXFMLA, SXFORMAT, SXFORMULA,
SXNAME, SXPAIR, SXRULE, SXSELECT, SXVDEX, TXO, USERBVIEW, USERSVIEWBEGIN,
USERSVIEWEND, USESELFS and XL5MODIFY (which is written in the BIFF5 Book
stream of a dual-format file, but by Excel 97). Every record [MS-XLS] adds after
these (types from 0x0800, the future records) is later still.
The shared-list (shared workbook) feature was added in Excel 95, so BIFF7 files may
hold RR… revision records and User Names and Revision Log streams; the
kit says their record data and the stream formats are not documented.
Field layouts
Source for this whole section: the OpenOffice.org description of the Excel file format
(Rentz, excelfileformat.txt), whose record pages give BIFF2, BIFF3, BIFF4, BIFF5 and
BIFF8 side by side; section numbers are Rentz’s. [MS-XLS] does not cover BIFF5. All offsets are
from the start of the record data. A byte string is an 8-bit or 16-bit length followed
by that many bytes in the workbook code page; it has no option-flags byte (unlike BIFF8’s
Unicode string). Cell records that are not listed here (NUMBER, RK, MULRK, BLANK, MULBLANK,
BOOLERR, ARRAY, SHRFMLA, ROW, DBCELL, COLINFO) are described as having the layouts of
BIFF8 (the viewer reads them that way
on real BIFF5 files); only the records below differ in layout from BIFF8.
Cell addresses in tokens (Rentz 3.3.3)
A BIFF2–BIFF5 cell address is 3 bytes: a 16-bit row field and an 8-bit column. In the row
field bits 0–13 are the row (0–16383), bit 14 (0x4000) is set when the column is
relative and bit 15 (0x8000) when the row is relative. An area is 6 bytes: first row
field, last row field, first column, last column. In the relative forms (tRefN,
tAreaN) the row is a signed 14-bit offset and the column a signed byte.
FONT (0x0031, Rentz 5.45)
| Offset | Size | Field | Meaning |
|---|---|---|---|
0 | 2 | height | In twips (1/20 point). |
2 | 2 | flags | Bit 0 bold, 1 italic, 2 underline, 3 strike-out, 4 outline, 5 shadow, 6 condensed, 7 extended. In BIFF5 bold and underline are redundant: the weight and underline fields are used instead. |
4 | 2 | colour | Palette colour index. |
6 | 2 | weight | 100–1000; 400 normal, 700 bold. |
8 | 2 | escapement | 0 none, 1 superscript, 2 subscript. |
10 | 1 | underline | 0 none, 1 single, 2 double, 0x21 single accounting, 0x22 double accounting. |
11 | 1 | family | 0 none, 1 roman, 2 swiss, 3 modern, 4 script, 5 decorative. |
12 | 1 | charset | Character set of the byte strings in cells that use this font (0 ANSI Latin, 1 default, 2 symbol, 0x4D Apple Roman, 0x80 Shift-JIS, 0x81 Hangul, 0x82 Johab, 0x86 GBK, 0x88 Big5, 0xA1 Greek, 0xA2 Turkish, 0xA3 Vietnamese, 0xB1 Hebrew, 0xB2 Arabic, 0xBA Baltic, 0xCC Cyrillic, 0xDE Thai, 0xEE Latin II, 0xFF OEM). |
13 | 1 | reserved | |
14 | var. | name | Byte string with an 8-bit length. |
The font with index 4 is not stored, so the fifth font and later are referred to with
one-based indexes. BIFF3 and BIFF4 (record 0x0231) have only height, flags, colour
and the name at offset 6; BIFF2 has height, flags and the name at offset 4.
FORMAT (0x041E, Rentz 5.49)
Offset 0, 2 bytes: the format index that other records use (in BIFF4 the field is unused and the
index is the record’s position in the list). Offset 2: the format string, a byte string with an 8-bit
length. From BIFF5 the built-in formats (indexes 0–163) are not written; the first user format is
164. BIFF2 and BIFF3 (0x001E) have no index field.
XF (0x00E0, Rentz 5.115)
| Offset | Size | Meaning |
|---|---|---|
0 | 2 | Font index. |
2 | 2 | Format index. |
4 | 2 | Bit 0 locked, bit 1 formula hidden, bit 2 style XF (0 = cell XF), bits 4–15 index of the parent style XF (0xFFF in a style XF). |
6 | 1 | Bits 0–2 horizontal alignment (0 general, 1 left, 2 centred, 3 right, 4 filled, 5 justified, 6 centred across selection), bit 3 text wrap, bits 4–6 vertical alignment (0 top, 1 centred, 2 bottom, 3 justified). |
7 | 1 | Bits 0–1 text orientation (0 none, 1 stacked top to bottom, 2 rotated 90 degrees counter-clockwise, 3 clockwise); bits 2–7 flags that say which groups come from this XF and not from the parent: number format, font, alignment, border, background, protection. |
8 | 4 | Bits 0–6 pattern colour index, bits 7–13 pattern background colour index, bits 16–21 fill pattern, bits 22–24 bottom line style, bits 25–31 bottom line colour. |
12 | 4 | Bits 0–2 top line style, 3–5 left style, 6–8 right style, 9–15 top colour, 16–22 left colour, 23–29 right colour. |
There is no rotation angle, indent or shrink-to-fit in BIFF5. BIFF4 has an XF of 12 bytes with an 8-bit font and format index; BIFF3 and BIFF2 have shorter ones (Rentz 5.115.2).
BOUNDSHEET (0x0085, Rentz 5.96)
4 bytes: absolute stream position of the sheet’s BOF. 1 byte: state (0 visible, 1 hidden, 2 very hidden). 1 byte: type (0 worksheet, 2 chart, 6 Visual Basic module). Then the name as a byte string with an 8-bit length.
DEFINEDNAME (0x0018, Rentz 5.33)
| Offset | Size | Meaning |
|---|---|---|
0 | 2 | Flags: bit 0 hidden, 1 function macro, 2 Visual Basic macro, 3 macro, 4 complex (array or user-defined), 5 built-in, bits 6–11 function group, bit 12 binary data. |
2 | 1 | Keyboard shortcut (command macros). |
3 | 1 | Name length ln. |
4 | 2 | Size sz of the formula. |
6 | 2 | 0 for a global name, else the one-based EXTERNSHEET index. |
8 | 2 | 0 for a global name, else the one-based sheet index (the name’s scope). |
10 | 4 | Lengths of the menu text, description, help topic and status bar text (1 byte each). |
14 | ln | Name characters (not a length-prefixed string). |
14+ln | sz | Formula tokens, without a size field. |
| then | var. | Menu text, description, help text, status text, in that order. |
EXTERNNAME (0x0023, Rentz 5.39)
External name or add-in function: 2 bytes flags (bit 0 built-in, bit 1 automatic link, bit 2 picture link, bit 3 StdDocumentName, bit 4 OLE link, bits 5–14 clipboard format), 2 bytes zero for a global name or the one-based EXTERNSHEET index, 2 reserved bytes, the name as a byte string with an 8-bit length, then the formula tokens. DDE and OLE links: 2 bytes flags, 4 bytes storage identifier (OLE links), the item name as a byte string, then optionally the last received values as a constant array.
Cell text
- LABEL (0x0204): row, column, XF index (2 bytes each), then a byte string with a 16-bit length (Rentz 5.63).
- RSTRING (0x00D6): as LABEL, then one byte with the number of formatting runs and that many 2-byte runs (first character index, font index) (Rentz 5.89).
- STRING (0x0207): the text result of the preceding FORMULA, a byte string with a 16-bit length (Rentz 5.102).
FORMULA (0x0006, Rentz 5.50)
Row, column, XF index (2 bytes each); the result, 8 bytes; flags, 2 bytes (bit 0 always recalculate, bit 1 calculate on open, bit 3 part of a shared formula); 4 unused bytes; the token size, 2 bytes; the tokens. The result is a double, or, when its last two bytes are 0xFFFF, a typed value: first byte 0 text (the text follows in STRING), 1 Boolean (value in byte 2), 2 error (code in byte 2).
Sheet records
- DIMENSION (0x0200): first used row, last used row plus 1, first used column, last used column plus 1, 2 unused bytes (all 16-bit) (Rentz 5.35).
- INDEX (0x020B): 4 unused bytes, first used row, last used row plus 1 (2 bytes each), the stream position of the DEFCOLWIDTH record (4 bytes), then one 4-byte stream position of the DBCELL record of each row block (Rentz 5.59).
- WINDOW2 (0x023E): flags, first visible row, first visible column (2 bytes each), then the grid line colour as a 4-byte RGB value (BIFF8 has a colour index here) (Rentz 5.110).
- NOTE (0x001C): see the divergence list below.
Formula tokens that differ from BIFF8 (Rentz 3.8–3.9)
Operators, constants (tInt, tNum, tBool, tErr, tMissArg), tAttr, tParen, tFunc and tFuncVar are laid out as in BIFF8, except for what follows.
| Token | Layout |
|---|---|
tStr 0x17 | A byte string with an 8-bit length (no option-flags byte). |
tName 0x23/43/63 | 2 bytes one-based index of the DEFINEDNAME record, then 12 unused bytes (BIFF8: 2 unused). |
tRef 0x24/44/64, tRefN 0x2C/4C/6C | One 3-byte cell address. |
tArea 0x25/45/65, tAreaN 0x2D/4D/6D | One 6-byte area. |
tRefErr 0x2A, tAreaErr 0x2B | 3 and 6 unused bytes. |
tNameX 0x39/59/79 | 2 bytes signed EXTERNSHEET index (negative: internal name, positive: external), 8 unused, 2 bytes name index (DEFINEDNAME or EXTERNNAME), 12 unused: 25 bytes in all, 24 after the token byte. |
tRef3d 0x3A/5A/7A | 2 bytes signed EXTERNSHEET index; for a negative (3-D) index: 8 unused, first and last sheet index (2 bytes each, 0xFFFF = deleted sheet), then a 3-byte cell address. For a positive (external) index: 12 unused, then the 3-byte address. |
tArea3d 0x3B/5B/7B | As tRef3d with a 6-byte area. |
tRefErr3d 0x3C/5C/7C, tAreaErr3d 0x3D/5D/7D | As tRef3d / tArea3d with the address bytes unused; external form: 15 and 18 unused bytes after the index. |
Charts
Rentz section 7 has only a few chart records, and its chart record order, CHAXISLINE and BIFF2–BIFF4 CHSOURCELINK sections are marked “2do”. It gives, for BIFF2–BIFF5:
- CHAREAFORMAT (0x100A): pattern colour RGB (4), background RGB (4), fill pattern (2), flags (2): bit 0 automatic, bit 1 invert for negative (BIFF8 stores colour indexes after these and ignores the RGB).
- CHLINEFORMAT (0x1007): RGB (4), pattern (2: 0 solid, 1 dashed, 2 dotted, 3 dash-dot, 4 dash-dot-dot, 5 none, 6 to 8 grey patterns), weight (2: 0xFFFF hairline, 0 thin, 1 medium, 2 thick), flags (2): bit 0 automatic, bit 2 axis enabled.
- CHSOURCELINK (0x1051): link target (1: 0 title or text, 1 values, 2 categories), link type (1: 0 none, 1 constant, 2 worksheet), flags (2: bit 0 custom number format), number format index (2), then the formula tokens.
- CHSTRING (0x100D): 2 unused bytes, then a byte string with an 8-bit length.
- CHFRAME (0x1032): flags (2: bit 0 automatic size, bit 1 automatic position) and a frame format (2: 0 standard, 4 shadowed).
- CHPICFORMAT block (BIFF5 only): a bitmap fill, CHPICFORMAT then CHBEGIN, IMDATA, CHEND.
Other chart record differences come from the LibreOffice import code
(xichart.cxx), which reads BIFF5 charts with the BIFF8 code and branches on the version.
This is program behaviour, not specification, and was not checked against a BIFF5 file with a chart. The branches: SERIES has no bubble type and count fields; PIE has rotation and hole
but no flags; SCATTER has no bubble fields and no flags; TICK has no palette index and no rotation (the rotation
is derived from the orientation bits 2–4 of its flags); TEXT has no palette index, no second flags word and no
rotation field; MARKERFORMAT has RGB colours and no size; LINEFORMAT and AREAFORMAT hold RGB values and no
palette indexes; CHFORMATRUNS and CHFRLABELPROPS do not exist; default text for axis titles, labels and data labels is
the global default text, not the per-axes-set one; the plot area is always positioned manually
(there is no automatic mode).
Not read from any source: the BIFF5 byte layouts of SERIES, AXIS, TEXT, FONTX, LEGEND, MARKERFORMAT and the rest of the chart records, and the order of records in a BIFF5 chart (the kit that has them is not in the research folder). They stay under Not described.
Divergence from the specification
[MS-XLS] covers BIFF8 only, so BIFF5 rests on the OpenOffice.org Excel file format description (Rentz) and on the programs. Places where they differ:
- Note. Rentz section 5.70 gives the BIFF2–BIFF5 Note as row, column,
total length and 8-bit text, with continuation Note records starting
0xFFFF; xlrd reads it that way (xlrd/sheet.pylines 1969–1993) and the viewer does too. - Name and ExternSheet. xlrd reads the BIFF5 and BIFF7 name as a
single-byte string, and ExternSheet as a character count, a type byte (1 to 4) and,
for type 3, a sheet name (
xlrd/book.pylines 977–978 and 902–920). - Style names. xlrd reads a BIFF5 style name with a one-byte length
(
xlrd/formatting.pyline 668), as the viewer does.
Key programs
- xlrd –
xlrd/book.py,xlrd/sheet.pyandxlrd/formatting.py(BIFF5 branches, as cited above). - Excel – the producer; not available here.