Generate XLSX files

Sorry, it should be

spreadsheet = New "../spreadsheetLibrary/spreadsheet"();

with a slash instead of dot in the path.

Another option would be to create an application mapping to the spreadsheet library.