How to generate an excel spreadsheet of a report