Library

libxlsxwriter v1.2.5

Versionv1.2.5
Stars★ 1,767
Released2026-11-24

A C library for creating Excel XLSX files.

Release notes

- Updated `build.zig` to support Zig 0.16.0.

- Fixed an issue where BMP images stored as top-down DIBs, with a negative
  height, weren't handled correctly.

- Fixed a heap overflow and infinite loop in `worksheet_data_validation_cell()`
  and `worksheet_data_validation_range()` when a `value_list` contained 256 or
  more items.

  Issue [#512][gh_512].

  [gh_512]: https://github.com/jmcnamara/libxlsxwriter/issues/512

- Fixed excessive, quadratic, memory allocation for default column headers in
  `worksheet_add_table()`, particularly for wide tables.

  Issue [#513][gh_513].

  [gh_513]: https://github.com/jmcnamara/libxlsxwriter/issues/513

- Fixed conditional format rule priorities when a range is repeated after a
  different range. The priorities now follow the order that the rules were
  added in.

- Fixed issue where `worksheet_set_start_page()` had no effect unless another
  page setup function was also called.

  Issue [#519][gh_519].

  [gh_519]: https://github.com/jmcnamara/libxlsxwriter/issues/519

- Fixed a use-after-free in `workbook_close()` when a header or footer with
  images was replaced by a second call to `worksheet_set_header_opt()` or
  `worksheet_set_footer_opt()` that used fewer images.

  Issue [#532][gh_532].

  [gh_532]: https://github.com/jmcnamara/libxlsxwriter/issues/532

- Table column formats set via `lxw_table_column.format` are now applied to
  data written to the column before the table is added with
  `worksheet_add_table()`.

  Issue [#520][gh_520].

  [gh_520]: https://github.com/jmcnamara/libxlsxwriter/issues/520

- Fixed issue where a worksheet with only embedded, background or
  header/footer images caused images and charts on later worksheets to
  reference a non-existent drawing file.

  Issue [#523][gh_523].

  [gh_523]: https://github.com/jmcnamara/libxlsxwriter/issues/523

- Fixed string length checks to use UTF-16 lengths instead of UTF-8 lengths, to
  align with Excel. Characters above U+FFFF, such as emojis, now count as 2.

- Fixed compiler warnings about discarded `const` qualifiers with C23
  compilers.

  Issue [#526][gh_526].

  [gh_526]: https://github.com/jmcnamara/libxlsxwriter/issues/526

- Fixed an issue where URLs that contained `internal:`, `external:` or
  `mailto:` after the start of the URL, for example in a query string, were
  treated as internal or external links, which gave an incorrect link and
  display string. These URL schemes are now only matched at the start of the
  URL.

- Fixed issue where an embedded image in a workbook with other images on an
  earlier worksheet had an incorrect cell metadata index and image relationship.

  Issue [#524][gh_524].

  [gh_524]: https://github.com/jmcnamara/libxlsxwriter/issues/524

- Fixed an issue where a worksheet with both a background image and a worksheet
  image has the images reversed.

- Fixed a crash in `workbook_close()` for a scatter chart series without
  categories, where the series ranges were set with
  `chart_series_set_values()`. `worksheet_insert_chart()` and
  `chartsheet_set_chart()` now return an error for this case.

  Issue [#525][gh_525].

  [gh_525]: https://github.com/jmcnamara/libxlsxwriter/issues/525

Share this resource


Discovered 2026-11-24 Source GitHub Archive 2026-11 →