Page Subtotal when Item takes more than one page
I have this problem. I'm working on a very big invoice smartform. I need to calculate a subtotal by page of two columns, these columns are within a loop and this loop within a table in Main Window, and each item could have several values in the column I need to sum up, and also each item could take more than one page, in fact, almost every item take several pages, and the subtotal should be shown in each pages, summing the values of each page of the item.
I tried to use the footer at page break, but it sums up the values of the item that begins in the page that it shows, but the value is actually shown in the following page. The page protection does not work because the item could take several pages and it also could make the subtotal to be shown in the last page of the item, and is also incorrect.
I'm starting to believe that what I need to do is impossible, but if anyone has the solution I will be very grateful.
Thanks a lot!!!!