I have a requirement that there be a .25 inch margin on all sides of the report, and that there be a 1 pixel border around the whole page showing this margin. In addition, I am supposed to put the page number outside of this border on the bottom right hand side of the page. Is this possible to do in BIRT 4.2?
Thank you for the quick response. This did enable me to put page numbers outside of the page border, but the border did not always end up being uniformly .25 inches away from each side of the page. My report has explitily defined page breaks in it between different elements, and when I have a partially filled page the grid will not continue down to the bottom of the page.
I messed up a bit on my example. Also put the height on the grid row, this should make it go to the bottom. Make sure your report is also in fixed layout.
See attached updated example. I also put a filter on the dataset to shorten the data so you could see it not fill up the page but the border goes to the bottom. In the example I did not remove paddings, which you may also want to do.
I appreciate your feedback. The most recent example you posted works fine under most situations, but it appears that it doesn't work when the content in a grid cell needs to be more than one page in length. Is there any way to set up the report so that the page border will be the correct size on all pages, with the page number outside of the border, when there are both static and dynamic page breaks in the report?
This looks like it may be a bug. Setting the height should have worked for both cases. As yet another attempt clear the height on the grid and the grid row. Also clear the widths. Next enter the following script in the onRender for the grid row:
this.height = "10.5in"
Look at the attached modified example. If you want a large dataset use the select in the query without a where clause, else add where ordernumber = 10101.
I couldn't get your example to work with a table that is more than one page in length. Specifying the height of the grid does not appear to have any effect on the output. I tried setting the height of the grid row both in the ui and through scripting, and both outputs would cut off the content of the row after one page. Maybe the grid approach isn't the right way to do this. Is there any way to get a footer to be outside the master page margin?
Can you explain your issue more completely? It appears that this thread is about trying to get the information outside of the border. The default should be inside the border. Maybe I'm misunderstanding.