The Microsoft Excel File Format - OpenOffice.org
The Microsoft Excel File Format - OpenOffice.org
The Microsoft Excel File Format - OpenOffice.org
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
5.8 BOF – Beginning of <strong>File</strong><br />
5.8 BOF – Beginning of <strong>File</strong><br />
BIFF2 BIFF3 BIFF4 BIFF5 BIFF8<br />
0009 H 0209 H 0409 H 0809 H 0809 H<br />
<strong>The</strong> BOF record is the first record of any kind of stream or substream:<br />
• <strong>The</strong> Worksheet Stream (➜4.1.1) and the Chart Stream (➜7.1.1)<br />
• All substreams in the Workbook Stream (the Sheet Substream and the Workbook Globals Substream, ➜4.1.2, and the<br />
Chart Substream, ➜7.1.2)<br />
• <strong>The</strong> Workspace Stream.<br />
A BOF record will never be encrypted, regardless of its type and position in the stream.<br />
If a BIFF8 version of <strong>Excel</strong> (<strong>Excel</strong> 8.0 and newer) writes a BIFF5 workbook, it writes a wrong BIFF version in BOF<br />
! records of the Sheet Substreams. Only the leading BOF record of the Workbook Globals Substream contains the<br />
correct value and should be used to determine the BIFF version for the entire stream.<br />
5.8.1 BOF Records Written by <strong>Excel</strong><br />
Record BOF, BIFF2 (record identifier is 0009 H ):<br />
Offset Size Contents<br />
0 2 BIFF version (not used)<br />
2 2 Type of the following data: 0010 H = Sheet<br />
0020 H = Chart<br />
0040 H = Macro sheet<br />
Record BOF, BIFF3 (record identifier is 0209 H ) and BIFF4 (record identifier is 0409 H ):<br />
Offset Size Contents<br />
0 2 BIFF version (not used)<br />
2 2 Type of the following data: 0010 H = Sheet<br />
0020 H = Chart<br />
0040 H = Macro sheet<br />
0100 H = Workspace (BIFF3W/BIFF4W only)<br />
4 2 Not used<br />
Record BOF, BIFF5 (record identifier is 0809 H ):<br />
Offset Size Contents<br />
0 2 BIFF version (always 0500 H for BIFF5). Should only be used, if this record is the leading<br />
workbook globals BOF (see above).<br />
2 2 Type of the following data: 0005 H = Workbook globals<br />
0006 H = Visual Basic module<br />
0010 H = Sheet or dialogue (see SHEETPR, ➜5.97)<br />
0020 H = Chart<br />
0040 H = Macro sheet<br />
0100 H = Workspace (BIFF5W only)<br />
4 2 Build identifier, must not be 0<br />
6 2 Build year<br />
135