# Printing a table in perspective

**URL:** <https://forum.inductiveautomation.com/t/printing-a-table-in-perspective/56175>\
**Category:** Ignition\
**Created:** [February 15, 2022, 5:00pm UTC](https://forum.inductiveautomation.com/t/printing-a-table-in-perspective/56175 "2022-02-15T17:00:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [February 15, 2022, 5:00pm UTC](https://forum.inductiveautomation.com/t/printing-a-table-in-perspective/56175/1 "2022-02-15T17:00:42Z")

</div>

I am making a button to print the table above it in the same flexcontainer.

I already use an export to csv script on a button next to it.

```auto
component = self.parent.parent.getChild("StopData").getChild"Table".props.data
csv= system.dataset.toCSV(component)
system.perspective.download("The file name I chose.csv",csv)

```

I saw something about 7.9 using this:  
event.source.parent.getComponent(‘Table’).print()

Then I saw people were having issues getting all of their table data when it had a scroll bar, some of the data would get cutoff.

So how do I print this table?

edit:I need to edit the flex container path, I had added one  
so now I have `self.parent.parent.getChild("StopData").getChild"Table".props.data` instead  
(added one more parent)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 15, 2022, 5:18pm UTC](https://forum.inductiveautomation.com/t/printing-a-table-in-perspective/56175/2 "2022-02-15T17:18:48Z")

</div>

You can’t make a browser print your page. v7.9 doesn’t have Perspective, so any technique from it would not apply.

The supported solution is to use a Report Viewer, or trigger a download of a printable file with system.perspective.download().

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [February 15, 2022, 5:59pm UTC](https://forum.inductiveautomation.com/t/printing-a-table-in-perspective/56175/3 "2022-02-15T17:59:42Z")

</div>

I thought system.print.createPrintJob() could do it

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [February 15, 2022, 6:24pm UTC](https://forum.inductiveautomation.com/t/printing-a-table-in-perspective/56175/4 "2022-02-15T18:24:52Z")

</div>

well I am trying to put my named query into a report

I designated it, but the table is not populating

edit: became a tedious process of entering each column name and then doing some grouping stuff

still have not figured out how to make it look right  
The other report had a total of 1400 width on a sheet that was 790ish  
It looks much better, not sure how to scale this table down yet either
