Page changing

Asked by Luca Zacchetti on 2010-10-11

    I'm using pod to create a report with different tables able for splitting them in different pages.

I need to print a sum of the rows of these tables at the end of each page on the report but I don't find any way to get a page changin event. (I should have to be able to catch the event when rendering the template).
Can I do it or is there any different solution?

Thank you

Question information

English Edit question
Appy Edit question
No assignee Edit question
Last query:
Last reply:

Hi, Pod can't catch this event. Pod's single ability is to perform a smart find-and-replace within the XML files within an ODT document, before sending it to OpenOffice if some conversion or index refreshing is required.

Within your table, is the number of lines per page fixed? If it is the case, you can perhaps manage yourself the fact of adding an additional line on every page with some page totals.

But for doing so, you will need to create your table(s) in ODT code, and import them with a statement like "do text from createTables()", the latter method being custom code that creates a series of tables + line breaks. The "do... from..." statement is there for inserting any ODT code directly into the result. This is the way to do things that Pod can't do directly.

So this answer sounds like "no it is not possible", unless you are ready to dig into ODT code...

Thank you for the answer, the number of lines is not fixed so I absolutely don't know which elements i have to sum ecc.

I've just discovered i can also don't print those sums but I still have a problem, at the beginning of each page i have to print the page number, getting it from a database table (so i can't use the special characters given by openoffice.)

The second way you explained intrigues me but is not clear at all(what does create my own table in ODT code means??)

Sorry for my bad english, if you need it i can send you the pdf of what i'm doing.


Can you help with this problem?

Provide an answer of your own, or ask Luca Zacchetti for more information if necessary.

To post a message you must log in.