Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Page numbers outside of page margins
Page numbers outside of page margins [message #1009232] Thu, 14 February 2013 18:07 Go to next message
John 555 is currently offline John 555Friend
Messages: 21
Registered: September 2012
Junior Member
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?
Re: Page numbers outside of page margins [message #1009239 is a reply to message #1009232] Thu, 14 February 2013 18:25 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You should be able to do this by setting the margins in the master page, add a grid to the report with a border and set your page break interval to 0 on the table. Take a look at the attached example.

Jason
BIRT-Exchange
Re: Page numbers outside of page margins [message #1009268 is a reply to message #1009239] Thu, 14 February 2013 19:50 Go to previous messageGo to next message
John 555 is currently offline John 555Friend
Messages: 21
Registered: September 2012
Junior Member
Hello Jason,

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.
Re: Page numbers outside of page margins [message #1009275 is a reply to message #1009268] Thu, 14 February 2013 20:05 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

John

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.

Jason
Re: Page numbers outside of page margins [message #1011929 is a reply to message #1009275] Wed, 20 February 2013 14:28 Go to previous messageGo to next message
John 555 is currently offline John 555Friend
Messages: 21
Registered: September 2012
Junior Member
Hello Jason,

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?

-John
Re: Page numbers outside of page margins [message #1012166 is a reply to message #1011929] Thu, 21 February 2013 02:19 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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.

Jason
Re: Page numbers outside of page margins [message #1015490 is a reply to message #1012166] Thu, 28 February 2013 18:05 Go to previous messageGo to next message
John 555 is currently offline John 555Friend
Messages: 21
Registered: September 2012
Junior Member
Hello Jason,

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?

John
Re: Page numbers outside of page margins [message #1015500 is a reply to message #1015490] Thu, 28 February 2013 20:41 Go to previous messageGo to next message
John 555 is currently offline John 555Friend
Messages: 21
Registered: September 2012
Junior Member
Jason

Actually, the scripting solution does appear to produce the correct output in the web viewer. It does not produce the correct output with the pdf emitter, which is the output that really matters.

John
Re: Page numbers outside of page margins [message #1016049 is a reply to message #1015500] Mon, 04 March 2013 17:45 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

John

Does this fail when you view in the web viewer and then export to pdf?

Jason
Re: Page numbers outside of page margins [message #1100470 is a reply to message #1016049] Tue, 03 September 2013 06:38 Go to previous messageGo to next message
indu K is currently offline indu KFriend
Messages: 2
Registered: September 2013
Junior Member
if i need to take masterpage value inside this border that what i need to do...
Re: Page numbers outside of page margins [message #1101070 is a reply to message #1100470] Wed, 04 September 2013 01:17 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

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.

Michael

Developer Evangelist, Silanis
Previous Topic:Automatic Vertical Page Breaks 3.7.2
Next Topic:BIRT Does not respond
Goto Forum:
  


Current Time: Fri Apr 19 22:41:55 GMT 2024

Powered by FUDForum. Page generated in 0.03957 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top