07.05.2014 Views

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5 Worksheet/Workbook Records<br />

5.18 COLINFO<br />

BIFF2 BIFF3 BIFF4 BIFF5 BIFF8<br />

— 007D H 007D H 007D H 007D H<br />

This record specifies the width and default cell formatting for a given range of columns.<br />

In BIFF3, if a COLINFO record is missing for a column, the width specified in the record DEFCOLWIDTH (➜5.32) is<br />

used instead.<br />

In BIFF4-BIFF5, the width set in this record is only used, if the corresponding bit for this column is cleared in the GCW<br />

record (➜5.51), otherwise the column width set in the DEFCOLWIDTH record (➜5.32) is used (the STANDARD-<br />

WIDTH record (➜5.101) is always ignored in this case).<br />

In BIFF8, if a COLINFO record is missing for a column, the width specified in the record STANDARDWIDTH<br />

(➜5.101) is used. If this record is also missing, the column width of the record DEFCOLWIDTH (➜5.32) is used<br />

instead.<br />

This record also specifies a default XF record (➜5.115) to use for cells in the columns that are not described by any cell<br />

record (which contain the XF index for that cell). Additionally, the option flags field contains hidden, outline, and<br />

collapsed options applied at the columns.<br />

In BIFF2, the column width is stored in the record COLWIDTH (➜5.20) and default column formatting in the record<br />

COLUMNDEFAULT (➜5.19).<br />

Record COLINFO, BIFF3-BIFF8:<br />

Offset Size Contents<br />

0 2 Index to first column in the range<br />

2 2 Index to last column in the range<br />

4 2 Width of the columns in 1 / 256 of the width of the zero character, using default font (first<br />

FONT record in the file)<br />

6 2 Index to XF record (➜5.115) for default column formatting<br />

8 2 Option flags:<br />

10 2 Not used<br />

Bits Mask Contents<br />

0 0001 H 1 = Columns are hidden<br />

10-8 0700 H Outline level of the columns (0 = no outline)<br />

12 1000 H 1 = Columns are collapsed<br />

146

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!