# Calling the download function from Perspective Report Viewer

**URL:** <https://forum.inductiveautomation.com/t/calling-the-download-function-from-perspective-report-viewer/87654>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [March 20, 2024, 6:53pm UTC](https://forum.inductiveautomation.com/t/calling-the-download-function-from-perspective-report-viewer/87654 "2024-03-20T18:53:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hw79](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hw79](https://forum.inductiveautomation.com/u/hw79)\
**Post date:** [March 20, 2024, 6:53pm UTC](https://forum.inductiveautomation.com/t/calling-the-download-function-from-perspective-report-viewer/87654/1 "2024-03-20T18:53:25Z")

</div>

I'm trying to duplicate the function of the popout button at the bottom of the report viewer but not finding anything in the documentation about it.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/5/857b7f0c54b893f100c4355e305ac0e7379fe1c9.png)

I want to add a button to a view to accomplish the same thing that the popout does.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [March 20, 2024, 8:18pm UTC](https://forum.inductiveautomation.com/t/calling-the-download-function-from-perspective-report-viewer/87654/2 "2024-03-20T20:18:45Z")

</div>

It wont have the same look as the built in report function, but you can download a copy of the report with:

> **[system.report.executeReport | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-report/system-report-executeReport)**
>
> Immediately executes an existing report and returns a List\[Byte\] of the output.

And

> **[system.perspective.download | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-perspective/system-perspective-download)**
>
> Downloads data from the Gateway to a device running a Session.
