Replies: 1 comment 2 replies
-
No. But the branch tup_main of my fork hvbtup/birt on GH contains a feature which can help to achieve this effect with the PDF emitter. So if you feel brave and your goal is to create a PDF-only report, you can test if this works for you and we could create a PR to add this feature to the master branch of eclipse/birt. You can imagine this like a vertical tab stop. The commit was hvbtup@cc83023 With this code, you can add a UserProperty called "VerticalTab" with a string value like "180mm" to a cell of a grid/table, This works more or less like you describe. I have to admit that I developed this because I was told a client needed this. Later on it turned out that this was not a strict requirement, so we didn't use this in production reports. I nevertheless kept the feature because I thought it could still be useful. I know that I created a simple demo report for this feature, but it is not tested in real-world reports. Note: Of course you would'nt use this UserProperty in a master page footer. See https://github.com/hvbtup/birt/wiki/NotableDifferences for more info about the fork (might be outdated regarding the bugs). |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've been tasked with converting some reports over to Birt but with the stipulation that a fixed size footer only appears on the last page. Following suggestions online, that seemed relatively straightforward by adding a conditional to the contents of the footer at the onRender event to check the pageNumber variable and show or hide the contents accordingly. However this approach still leaves a gap on all the previous pages which I've been asked to look into removing.
Is there any way to remove these gaps and just have a footer at the very bottom of the last page?
I would imagine Birt needs to have some idea of the size of the page when it's constructing the document, but I was wondering if I could move the contents of our footer (just a grid with some summary information) out of the Master Page and into the main layout and anchor that to the bottom of the last page somehow. It doesn't look like this is possible via the standard styling options, but I wandered if I could dynamically alter the top margin of the contents of the "footer" such that it would resize itself to fill in the gap based on where the preceding element was rendered on the page.
I've tried to access the methods getVerticalPosition and getHorizontalPosition via the onRender event but these all seem to just return null for every element. Is it possible to get any information about the layout of the document as it is being constructed and access that via the scripting tools? Or have a misunderstood exactly when and what is invoking the onRender functions? Is there some other means to achieve a footer on the last page without leaving a gap at the bottom of the other page?
Thanks!
Mat
Beta Was this translation helpful? Give feedback.
All reactions