If you need to save a formatted report, it's customary to have a backend process take the data and either generate a PDF-formatted report, a CSV-formatted report, or an HTML-formatted report (or options for any of the above). Setting the response headers properly makes the response a "download", which the users can then save wherever they please on their file systrm.