The reason why the excel export for this script isn't working is because the code/script "ExportToExcel.ExportReport()" works blindly on exporting the data. But it doesn't know what data and which data to export. Hence, add the below line of code to ...