# Printing page numbers of total pages powertable

**URL:** <https://forum.inductiveautomation.com/t/printing-page-numbers-of-total-pages-powertable/57442>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [March 21, 2022, 10:35pm UTC](https://forum.inductiveautomation.com/t/printing-page-numbers-of-total-pages-powertable/57442 "2022-03-21T22:35:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.benson](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@michael.benson](https://forum.inductiveautomation.com/u/michael.benson)\
**Post date:** [March 21, 2022, 10:35pm UTC](https://forum.inductiveautomation.com/t/printing-page-numbers-of-total-pages-powertable/57442/1 "2022-03-21T22:35:12Z")

</div>

reportPrint = event.source.parent.getComponent(‘Power Table’)  
reportPrint.print(1,None,‘Page {0} Of {}’,1,1)

trying to print like “Page 1 of 10”

how do you do this have not found it in forum

---

<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 21, 2022, 11:18pm UTC](https://forum.inductiveautomation.com/t/printing-page-numbers-of-total-pages-powertable/57442/2 "2022-03-21T23:18:01Z")

</div>

Sorry, i have no idea what you are trying to do? Can you rework your question, maybe include a visual?

---

<div class="post-metadata">

**Author:** ![kvane](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kvane/32/22228_2.png) [@kvane](https://forum.inductiveautomation.com/u/kvane)\
**Post date:** [March 21, 2022, 11:57pm UTC](https://forum.inductiveautomation.com/t/printing-page-numbers-of-total-pages-powertable/57442/3 "2022-03-21T23:57:28Z")

</div>

I see what you are trying to do, but I don’t think that print() scripting function is aware of the maximum number of pages. There will not be a built-in way for that to work.

If you know the maximum number you could hardcode it within the string for the “footerFormat” , or try to make the max pages a dynamic variable based on the total data points in the table.

OP is referencing the print() Scripting function from the [Power Table](https://docs.inductiveautomation.com/display/DOC79/Power+Table) - specifically the “footerFormat” keyword argument.
