# Export Report Viewer to CSV Version 8

**URL:** <https://forum.inductiveautomation.com/t/export-report-viewer-to-csv-version-8/31643>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [January 27, 2020, 4:05pm UTC](https://forum.inductiveautomation.com/t/export-report-viewer-to-csv-version-8/31643 "2020-01-27T16:05:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drinaldi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drinaldi/32/32068_2.png) [@drinaldi](https://forum.inductiveautomation.com/u/drinaldi)\
**Post date:** [January 27, 2020, 4:05pm UTC](https://forum.inductiveautomation.com/t/export-report-viewer-to-csv-version-8/31643/1 "2020-01-27T16:05:25Z")

</div>

Is it still possible to export a report viewer to CSV?  
My reports have multiple queries.  
If not any other way to do it?  
Thanks

below is something I found in the forum, from awhile ago.

* * *

We don’t expose a function to get the CSV bytes but it is possible to call that function: `report = event.source.parent.getComponent('Report Viewer') csvBytes = report.getComponent(0).getViewport().getView().getDocument().getBytesCSV() system.file.writeFile("Path/to/test.csv", csvBytes)`
