Hi kalyan ,
Say for example you are looping your output table and you want to put 10 items in one page and the 11th line would be reserved for totals of above 10.
And the next 10 you can print below that . And for that you can use the current line no MOD 11 and if reminder is 0 get the totals printed.
Hope you got it in case any details needed please let me know.
Regards,
Dnyaneshwar