ooxml - ECMA-376 Office Open XML File Formats
Synopsis
Read and write Office Open XML "XLSX" spreadsheets (since Excel 2007) and create Office Open XML "DOCX" word processing documents.
The spreadsheet part (package ooxml) contains several commands to edit Excel files. The three most important are the following three:
Importing Excel files into a Tcl array with ::ooxml::xl_read, export Tcl data to an Excel file with ::ooxml::xl_write and export Tcl tablelist to an Excel file with ::ooxml::tablelist_to_xl.
The word processing part (package ooxml::docx) creates ECMA-376 WordprocessingML documents readable by Microsoft Word and LibreOffice. The documents are built from scratch or from an existing .docx template with ::ooxml::docx::docx and have methods to add and style paragraphs, tables, images, headers and footers, footnotes, comments, fields, hyperlinks, lists, textboxes and math formulas (OMML).
For information on how to use these commands, see the examples and the man-pages man-xlsx and man-docx at this site.
Dependencies
- Tcl >= 8.6.7
- tdom >= 0.9.0 (the docx writer requires tdom >= 0.9.6)
- Reading xlsx and docx files uses the zlib command built into Tcl and needs no additional package. Optional fallback backends for archives the built-in reader cannot handle: Tcl 9 zipfs, tcllib zipfile::decode or tclvfs vfs::zip >= 1.0.4.
Wiki Pages
See Also
Legal Notice
Copyright (C) 2018-2026 Alexander Schoepe, Bochum, DE
Copyright (C) 2019-2026 Rolf Ade, DE
Copyright (C) 2023-2024 Harald Oehlmann, DE
Copyright (C) 2025 Miguel Bañón, ES
Tcl package: BSD-3 license