One can create MS Excel tables using Python / Java syntax is a completely programmable way. The output files can be opened in MS Excel or OpenOffice / Libre office.
Here is a small Jython example that creates a table with custom fields.
No access to this part. DataMelt members can view this part after login to member area.