BIRT Exchange Forum: How to put a footer only in the last page of the report - BIRT v2.3.2 - BIRT Exchange Forum

Jump to content


 

BIRT Poll: To best make a table fill a pdf page before breaking (PL=page layout, PBI=page break interval) set:

PL: auto, PBI: 0PL: fixed, PBI: 0PL: auto, PBI: 1000000PL: fixed, PBI: 1000000
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to put a footer only in the last page of the report - BIRT v2.3.2 Rate Topic: -----

#1 User is offline   xanthos Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 16-April 12


Posted 24 April 2012 - 04:36 AM

Hi,

I have already put a footer in all pages of my report via the master page. My issue is that I want to put also an extra footer in the last page. I am using BIRT with MAXIMO and this seems impossible to BIRT v2.3.2 which is the appropriate for MAXIMO designers.

I have tried to write a script using totalPages in order to make visible that footer only in the last page but it is not work.

I attach my solution in order to make all of the above more unserstandable. The part of my repot that i want to put in the last's page footer is the row : Supplier Ref. , Contact, Telephone and Suppliers Signature.

Any help appreciated :)

Thanks in advance.

Attached File(s)


0

#2 User is offline   mblock Icon

  • Expert Member
  • View blog
  • Group: Members
  • Posts: 205
  • Joined: 07-August 07


Posted 24 April 2012 - 04:46 PM

View Postxanthos, on 24 April 2012 - 05:36 AM, said:

I want to put also an extra footer in the last page.


Does it have to be on the bottom of the page?
0

#3 User is offline   xanthos Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 16-April 12


Posted 25 April 2012 - 12:01 AM

View Postmblock, on 24 April 2012 - 05:46 PM, said:

Does it have to be on the bottom of the page?


Yes I need it only on the bottom of the last page above my master's page footer.
0

#4 User is offline   mblock Icon

  • Expert Member
  • View blog
  • Group: Members
  • Posts: 205
  • Joined: 07-August 07


Posted 25 April 2012 - 06:54 AM

View Postxanthos, on 25 April 2012 - 01:01 AM, said:

Yes I need it only on the bottom of the last page above my master's page footer.


Add an additional table after all your content that has only your footer. Then use this technique to push it to the bottom of the page. The code was written in BIRT 2.5 but should also work in BIRT 2.3.2

http://www.birt-exch...le-to-fit-page/
0

#5 User is offline   xanthos Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 16-April 12


Posted 26 April 2012 - 12:59 AM

View Postmblock, on 25 April 2012 - 07:54 AM, said:

Add an additional table after all your content that has only your footer. Then use this technique to push it to the bottom of the page. The code was written in BIRT 2.5 but should also work in BIRT 2.3.2

http://www.birt-exch...le-to-fit-page/



Thank you for the solution that you proposed. I tried to implement it. It works if I have a report of 1 or 2 pages but when i tried to create a report of 8 pages it added after the 8 pages 10 blank pages and after that it add my footer.
0

#6 User is offline   mblock Icon

  • Expert Member
  • View blog
  • Group: Members
  • Posts: 205
  • Joined: 07-August 07


Posted 26 April 2012 - 03:35 AM

View Postxanthos, on 26 April 2012 - 01:59 AM, said:

Thank you for the solution that you proposed. I tried to implement it. It works if I have a report of 1 or 2 pages but when i tried to create a report of 8 pages it added after the 8 pages 10 blank pages and after that it add my footer.


I am not the author of the footer solution so I am not sure what could be causing this. Number of pages should not affect this. Maybe the size of the detail row is changing.
0

#7 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12937
  • Joined: 16-May 08


Posted 26 April 2012 - 04:00 PM

With that solution, you'll have to force the page breaks to happen because of a bug regarding the page break events in earlier versions of BIRT. Variable line heights will also cause an issue with this. To get it to work, you'll need to have fixed line heights, so that you can set a page break interval that works for every page. Or, you'll need to compute how many lines each row will take so that you can manually force the page breaks to occur, so that the page breaking events are called. As for the 10 extra pages, I'm not sure what's happening there. That should not happen. Something is probably not set right in the code, for your example. I'd have to see it to know.

You could always upgrade your BIRT version and just embed your reports in JSP pages in your application or just make calls out to a separately deployed version of BIRT. You don't have to use the version that's in Maximo, to use your Maximo data. Just an option.

Let me know if you have any questions!
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users