Export custom file to disk via Excel Add-in?

I’m new to Excel Web Add-Ins and want to figure out if it’s possible to make an add-in that can export a custom file.

I’ve looked around and all I find are Excel specific commands like Workbook.SaveAs() but I can’t find anything on making custom export functions. I need to convert the file into XML but a specific XML setup and so, I could just work the data before I save it to XML. But again, can’t find much of anything to suggest that this is supported.

How would I go about writing a file to disk from Excel that isn’t just the Workbook?

106 thoughts on “Export custom file to disk via Excel Add-in?”