PDF and page number [message #656440] |
Fri, 25 February 2011 11:26  |
Eclipse User |
|
|
|
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 14:04   |
Eclipse User |
|
|
|
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 14:54   |
Eclipse User |
|
|
|
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 16:38  |
Eclipse User |
|
|
|
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!
|
|
|
Powered by
FUDForum. Page generated in 0.04082 seconds