I have a requirement that while printing line items in Smartform I want to print page-wise totals i.e, I want to print total of the line items displayed in first page and second page should contain the totals of that page and the first page and last page should contain the grand total.
How to achieve it in the smartform?