Calling the download function from Perspective Report Viewer

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

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

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

And