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.51 GCW – Global Column Width<br />

BIFF2 BIFF3 BIFF4 BIFF5 BIFF8<br />

— — 00AB H 00AB H —<br />

This record contains a bitfield with one bit for every column in the worksheet, describing how to set the column width<br />

for the respective column. If this record is omitted, all columns are using the default column width.<br />

Record GCW, BIFF4-BIFF5:<br />

Offset Size Contents<br />

0 2 Size of the following bitfield (in bytes, always 0020 H )<br />

2 32 Bit field with one bit for every column in the worksheet. <strong>The</strong> first byte of the bitfield<br />

contains flags for the first 8 columns (A to H), the second byte for the next 8 columns and<br />

so on. Bit 0 (mask 0x01) of each byte is for the leftmost column in the column interval,<br />

bit 7 (mask 0x80) is for the rightmost column.<br />

If a bit is set, the corresponding column uses the width set in the STANDARDWIDTH<br />

record (➜5.101). If a bit is cleared, the corresponding column uses the width set in the<br />

COLINFO record (➜5.18) for this column.<br />

If a bit is set, and the worksheet does not contain the STANDARDWIDTH record, or if the<br />

bit is cleared, and the worksheet does not contain the COLINFO record, the DEFCOL-<br />

WIDTH record (➜5.32) of the worksheet will be used instead.<br />

178

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

Saved successfully!

Ooh no, something went wrong!