# Print table data

**URL:** <https://forum.inductiveautomation.com/t/print-table-data/26456>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [July 10, 2019, 10:13pm UTC](https://forum.inductiveautomation.com/t/print-table-data/26456 "2019-07-10T22:13:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mavallejo](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mavallejo](https://forum.inductiveautomation.com/u/mavallejo)\
**Post date:** [July 10, 2019, 10:13pm UTC](https://forum.inductiveautomation.com/t/print-table-data/26456/1 "2019-07-10T22:13:08Z")

</div>

Hello Collages

Someone could help me to know how to print table data on my default printer?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [July 11, 2019, 2:26pm UTC](https://forum.inductiveautomation.com/t/print-table-data/26456/2 "2019-07-11T14:26:35Z")

</div>

[https://docs.inductiveautomation.com/display/DOC79/Power+Table](https://docs.inductiveautomation.com/display/DOC79/Power+Table)  
Scroll down to the print function.

---

<div class="post-metadata">

**Author:** ![mavallejo](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mavallejo](https://forum.inductiveautomation.com/u/mavallejo)\
**Post date:** [July 11, 2019, 2:54pm UTC](https://forum.inductiveautomation.com/t/print-table-data/26456/3 "2019-07-11T14:54:37Z")

</div>

Hello MMaynardUSG

Thanks for your answer, could you give me a example how to built a script to print table data.

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [July 11, 2019, 2:58pm UTC](https://forum.inductiveautomation.com/t/print-table-data/26456/4 "2019-07-11T14:58:30Z")

</div>

What have you tried?

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [July 11, 2019, 3:16pm UTC](https://forum.inductiveautomation.com/t/print-table-data/26456/5 "2019-07-11T15:16:28Z")

</div>

Sure…  
Put a button on the window with the table, then in the action performed put something like

```auto
t = event.source.parent.getComponent('Power Table')
t.print(fitWidth=1,showDialog=1)

```

---

<div class="post-metadata">

**Author:** ![mavallejo](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mavallejo](https://forum.inductiveautomation.com/u/mavallejo)\
**Post date:** [July 11, 2019, 3:29pm UTC](https://forum.inductiveautomation.com/t/print-table-data/26456/6 "2019-07-11T15:29:07Z")

</div>

MMaynardUSG solved me question, thanks,

---

<div class="post-metadata">

**Author:** ![mavallejo](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mavallejo](https://forum.inductiveautomation.com/u/mavallejo)\
**Post date:** [July 11, 2019, 3:31pm UTC](https://forum.inductiveautomation.com/t/print-table-data/26456/7 "2019-07-11T15:31:11Z")

</div>

I already had tried that but not with parent word, thanks in advance for your support now I can print the information
