BIRT Exchange Forum: pageNumber in pdf output - BIRT Exchange Forum

Jump to content


 

BIRT Poll: Have you ever done any development work on mobile?

Yes - lotsYes - someNo - but plan toNo time or interestWhat is mobile?
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

pageNumber in pdf output Rate Topic: -----

#1 User is offline   adamdc78 Icon

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


Posted 26 April 2012 - 12:31 PM

I'm attempting to manually hide/display data values under certain conditions. One condition for displaying the value is that it occurs on the first row of a page. When outputting to pdf, the page number does not correspond to the page numbering in the report (because pdfs are restrict by page size).

For instance, one grouping's results spans 3 pages, but the page number when output next to each row remains the same for all of them, whether the row is actually on page 5 or page 7 of the pdf report.

Is there any way to check that a row is at the top of a new pdf page (rows are quite complex, in some cases only 4 rows will fit per page, in others, dozens).

As a very simplified example of what's happening:

text, text, 1
text, text, 1
text, text, 1
--- pdf page break ---
text, text, 1
text, text, 1

--- pdf page break ---
text, text, 2
text, text, 2

where the integer value displayed is the value in pageNumber.
0

#2 User is offline   mwilliams Icon

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


Posted 26 April 2012 - 04:08 PM

What is your BIRT version?
Regards,

Michael

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

#3 User is offline   adamdc78 Icon

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


Posted 27 April 2012 - 05:37 AM

Thanks for the response, I'm using BIRT 2.5.

I need two groups dropping to detail and the outer group doesn't get processed correctly, so I've combined the two groups and just need to control the display logic (if that makes what I'm trying to do any clearer).
0

#4 User is offline   mwilliams Icon

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


Posted 04 May 2012 - 07:31 AM

In earlier versions of BIRT, there was a bug with the "natural" page breaks in PDF. The end of page events only fired when a page break was forced by you manually or if the page break interval was met. The way you'll have to fix this is to set a page break interval that will definitely fit onto a single page. If you cannot do this, you'll have to find a way to compute when you need to insert a page break in script, based on the rows so far on the page. Upgrading to the newest version would also fix your issue. Hope this helps. Let me know if you have more questions.
Regards,

Michael

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

#5 User is offline   adamdc78 Icon

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


Posted 04 May 2012 - 05:27 PM

View Postmwilliams, on 04 May 2012 - 07:31 AM, said:

In earlier versions of BIRT, there was a bug with the "natural" page breaks in PDF. The end of page events only fired when a page break was forced by you manually or if the page break interval was met. The way you'll have to fix this is to set a page break interval that will definitely fit onto a single page. If you cannot do this, you'll have to find a way to compute when you need to insert a page break in script, based on the rows so far on the page. Upgrading to the newest version would also fix your issue. Hope this helps. Let me know if you have more questions.
Thanks for the response. Just going to work without the outer drop to detail and live with it for now.
0

#6 User is offline   mwilliams Icon

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


Posted 07 May 2012 - 02:10 PM

If you want to try to reproduce the issue with the sample database or with some sample data in a flat file or XML source, I'll be able to take a closer look. Just attach it in here, if you make it.
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