# Printing a table

**URL:** <https://forum.inductiveautomation.com/t/printing-a-table/2798>\
**Category:** Ignition\
**Created:** [March 23, 2011, 3:48pm UTC](https://forum.inductiveautomation.com/t/printing-a-table/2798 "2011-03-23T15:48:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [March 23, 2011, 3:48pm UTC](https://forum.inductiveautomation.com/t/printing-a-table/2798/1 "2011-03-23T15:48:58Z")

</div>

using the script below it nicely prints the table. Is there a way to make it print a string of text indicating the device that the info is from? I can always setup the query to show the device name in its own row, but was just wondering if there is a way to get some kind of reference to the device on their.

table = event.source.parent.getComponent(“Table”) # Get a reference to the table

table.print()

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 23, 2011, 5:59pm UTC](https://forum.inductiveautomation.com/t/printing-a-table/2798/2 "2011-03-23T17:59:44Z")

</div>

Not really, you have add the data to your dataset like you mentioned.
