Kuba Kr�likowski wrote:
I have asked for it some time ago, but I didn't get any satisfying answer: how to make summary at end of the page using FOP? I want to print long table on few pages, and on every page I want to put summary under some columns (where should be sum of column values). The problem is that I don't know where is the page break and which values I have to sum.

As you've been told, use markers. Note that you can't tell the formatter to sum up stuff, you'll have to put already prepared markers into the FO source. For "summing up the whole stuff until this point" this is easy. Lets say your data is 10, 20, 30, ... The prepare a FO like (pseudo code) <fo:table-row> <fo:table-cell> <fo:block><fo:marker marker-class-name="sum">10</fo:marker> 10 </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block><fo:marker marker-class-name="sum">30</fo:marker> 20 </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block><fo:marker marker-class-name="sum">600</fo:marker> 30 </fo:block> </fo:table-cell> </fo:table-row>

and use something like
  <fo:block>Sum: <fo:retrieve-marker retrieve-class-name="sum"
    retrieve-position="last-starting-within-page"/></fo:block>

If you want to have sums per page, this is difficult to impossible
because you don't know where to start the summation.

J.Pietschmann


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to