The full story is available on DeveloperCommunity
But here's the light weight export to EXCEL.
Good old CSP is well equipped to produce HTML tables accepted from EXCEL as input.
With modern Browsers you don't even need
The final trick to move your table from browser to EXCEL:
In the method OnPreHTTP inherited from %CSP.Page you
Now when you call the class with your browser you get asked to open or to save it.
Next , because the extenison is .cls you get asked for the program to open it.
And if you select EXCEL (or any compatible tool) the table is ready for the user to work with it.
This could be a slim solution for rater static SQL queries.
Well suited to serve a wide distributed population of users.
Rather small size of code with simple structure
Now you will understand why I titled it "Light Weight"