ANNOUNCE ooxml (Excel im-/export) v1.6
What has been changed:
bug fix: docProps/app.xml sheet count was wrong
https://tcl.sowaswie.de/repos/fossil/ooxml/info/32d3627499855488
new feature: "named formats" for numberformats, fonts, fills, borders and styles "-tag TAGNAME"
TAGNAMES must be alphanumeric because the internal formats return numeric values and otherwise not kept apart.
new feature: "shared formula" in method cell
-formulaidx SHARE
SHARE must be integer and starts at 0. Make sure that indexing is correct, no plausibility checks are performed.
-formularef INDEX:INDEX
The formula is shared from INDEX to INDEX. A '-formulaidx' must be assigned.
see example:
https://tcl.sowaswie.de/repos/fossil/ooxml/artifact/309b44ca85
See also:
https://tcl.sowaswie.de/repos/fossil/ooxml/wiki?name=man-page
https://tcl.sowaswie.de/repos/fossil/ooxml/timeline?t=version-1.6
ooxml ECMA-376 Office Open XML File Formats
SYSNOPSIS
Read and Write Office Open XML "XLSX" since Excel 2007
This package 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.
For information on how to use these commands, see the examples and the man-page
at
https://tcl.sowaswie.de/repos/fossil/ooxml.
API
::ooxml::Default name value
::ooxml::RowColumnToString rowcol
::ooxml::StringToRowColumn name
::ooxml::CalcColumnWidth numberOfCharacters ?maximumDigitWidth? ?pixelPadding?
::ooxml::xl_sheets file
::ooxml::xl_read file args
::ooxml::xl_write args
method numberformat args
method defaultdatestyle STYLEID
method font args
method fill args
method border args
method style args
method worksheet name
method column sheet args
method row sheet args
method cell sheet {data {}} args
method autofilter sheet indexFrom indexTo
method freeze sheet index
method presetstyles
method presetsheets
method view args
method write filename
::ooxml::tablelist_to_xl lb args
DOWNLOAD
https://tcl.sowaswie.de/repos/fossil/ooxml/uv/download.html
DEPENDENCIES
Tcl >= 8.6.7
tclvfs::zip >= 1.4.2
tdom >= 0.9.0
GETTING THE CODE
The development repository is hosted at
https://tcl.sowaswie.de/repos/fossil/ooxml
You are encouraged to use trunk.
INSTALLING
Simply extract the download ooxml-<version>.zip into your Tcl library path.
Since ooxml is TEA-compatible you should be able to do
../configure
make test
make install
REPORTING BUGS
Please head to
https://tcl.sowaswie.de/repos/fossil/ooxml/ticket and
click on "New Ticket". Log in as anonymous and report your findings.
If you prefer to have an individual login write Alex a mail.
HISTORY
ooxml was started by Alexander Schoepe and improved with contributions by Rolf Ade.