Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » PDF and page number
PDF and page number [message #656440] Fri, 25 February 2011 16:26 Go to next message
Nicola is currently offline NicolaFriend
Messages: 184
Registered: July 2009
Senior Member
Hi,
in birt 2.6.1 when I export a single html page to PDF, my pdf file
contains 2 pages and the second one display page number as 1/1 (instead
of 2/2).
I can't figure out how to workaround this problem, any suggestios, please?

Thank you,
Nicola
Re: PDF and page number [message #656454 is a reply to message #656440] Fri, 25 February 2011 17:23 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Nicola,

Can you post the design?

Jason

On 2/25/2011 11:26 AM, nicola wrote:
> Hi,
> in birt 2.6.1 when I export a single html page to PDF, my pdf file
> contains 2 pages and the second one display page number as 1/1 (instead
> of 2/2).
> I can't figure out how to workaround this problem, any suggestios, please?
>
> Thank you,
> Nicola
Re: PDF and page number [message #713648 is a reply to message #656440] Mon, 08 August 2011 18:04 Go to previous messageGo to next message
Nick Padilla is currently offline Nick PadillaFriend
Messages: 16
Registered: August 2011
Location: New Mexico
Junior Member
Hello,

I am assuming that you have a custom page break for your report? I have found that the custom page break, which in my case will show all rows per grouping. I display the BirtViewer in HTML layout, basically housed within an existing web application. What I have found is when your custom page break creates a page that cannot fit on an exported document, PDF or DOC, you end up with this functionality. You end up with 2 pages that say they are page one, you can have any number of pages show page 1, depending on the amount of data on the one page; from the custom page breaks. I think a quick way around this is in the custom script to see if the process is an export process, if so then allow the application to create page breaks; set everything to 'auto'.

Is there a way to do this? I haven't tried yet, was looking for a quick solution. I will embark on this and figure out what needs to happen to resolve this problem and post back.
Re: PDF and page number [message #713674 is a reply to message #713648] Mon, 08 August 2011 18:54 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Nick,

While you are looking at this, remember pagination is done at run time
not render time. So in order to change it the report has to be re-executed.

Jason

On 8/8/2011 2:04 PM, Nick Padilla wrote:
> Hello,
>
> I am assuming that you have a custom page break for your report? I have
> found that the custom page break, which in my case will show all rows
> per grouping. I display the BirtViewer in HTML layout, basically housed
> within an existing web application. What I have found is when your
> custom page break creates a page that cannot fit on an exported
> document, PDF or DOC, you end up with this functionality. You end up
> with 2 pages that say they are page one, you can have any number of
> pages show page 1, depending on the amount of data on the one page; from
> the custom page breaks. I think a quick way around this is in the custom
> script to see if the process is an export process, if so then allow the
> application to create page breaks; set everything to 'auto'.
> Is there a way to do this? I haven't tried yet, was looking for a quick
> solution. I will embark on this and figure out what needs to happen to
> resolve this problem and post back.
Re: PDF and page number [message #713703 is a reply to message #713674] Mon, 08 August 2011 20:38 Go to previous message
Nick Padilla is currently offline Nick PadillaFriend
Messages: 16
Registered: August 2011
Location: New Mexico
Junior Member
yeah, that is exactly what I thought was going to happen. Thanks Jason for your quick reply, pretty sure the only thing that will work is to allow birt to do the pagination. I'll look into this a bit and get back to you. Thanks again!
Previous Topic:XML datasource with dynamic URL
Next Topic:Suppress Table Header row in the last page
Goto Forum:
  


Current Time: Sat Apr 20 04:08:13 GMT 2024

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

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

Back to the top