Export report data as a CSV or HTML file