Skip to content

v2.6.0

Choose a tag to compare

@almasumdev almasumdev released this 29 Aug 20:14
· 83 commits to main since this release

Added

  • Legacy .xls (Excel 97-2003) files can now be opened. Excel.decodeBytes
    and decodeBytesAsync detect the binary BIFF8 format from the file's magic
    bytes, so .xls and .xlsx open through the same call. The workbook is
    decoded read-only into the regular model: cell values, dates and times in
    both the 1900 and 1904 epoch systems, shared strings (including split and
    UTF-16 strings), merged cells, sheet order and tab visibility, built-in and
    custom number formats, fonts, fills, borders, alignment, and column widths
    and row heights. Formulas are decoded from their binary token streams back
    to real formula text (FormulaCellValue), covering the full operator set,
    the built-in function table, absolute and relative references, shared and
    array formulas, cross-sheet references, defined names, and constant arrays;
    the last-calculated result is kept as the cached value, and any token the
    decoder does not model degrades to that cached result instead of failing.
    Saving always produces a modern .xlsx, so opening an old file and saving
    it is a complete migration. Password-protected and pre-BIFF8 (Excel 5.0/95)
    files are rejected with clear typed errors. Pure Dart, no new dependencies,
    and works on every platform including the web.

Fixed

  • Custom number-format codes are classified case-insensitively and bracket
    prefixes are ignored.
    A format written as M/D/YYYY was treated as
    numeric, so its date cells decoded as plain serial numbers, and the d in a
    [Red] color prefix made currency formats such as [Red]-#,##0.00 classify
    as dates. Both are fixed for .xlsx and .xls; elapsed-time brackets like
    [h]:mm:ss still classify as time.