This is Vince from Dyalog Support. I would recommend that you search the internet for: create an excel spreadsheet from scratch using openxml
Regards,
Vince
p.s. Here are some links that I found which I think will be helpful:
Create a spreadsheet document by providing a file name
Generating a XML Excel document using XDocument