Printing page numbers of total pages powertable

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

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

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 - specifically the “footerFormat” keyword argument.

1 Like