It took me a while to get this working, and a lot of Excel's capabilities are not implemented, but this should help you with the exporting at least.
The classes in the Excel environment don't...