Have you tried some add-on? Or using Apache POI or jexcelapi it should be pretty easy to iterate over the columns (or the source data itself) and generate and Excel
I tryied by using Apache POI and i have list of data ready for writting to excel.
This makes my list of data to excel.
My problem is i need to provide excel column headings should be as Grid column headings and number of columns also be same.