I’m looking for a good way to take a set of objects and convert them to Excel format. I used VSTO in the past, but it was not well documented and I was not happy with many of the naming conventions and breaking changes.
I thought about maybe doing an XSLT transform, but don’t see any clean way to get from there to Excel. I saw something about going XSLT > HTML > Excel, but I dunno…html is such a loose standard I don’t trust it to produce consistent data transformations.
What do you recommend?
I use the code that can be found on The Code Project website.
It creates an xml file that Excel understands as an excel workbook. It’s quirky; when you open it, you get a message like this:
It opens fine though and you can then save it to a real excel format.
Looking at the code, it doesn’t look like it’d take much to create multiple worksheets (which I think is what you wanted to do). 🙂
Here’s the code if for some reason the link doesn’t load: