Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363532 - Version: 3.6.2
Summary: Version: 3.6.2
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-Build CLA
QA Contact: Sissi Zhu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 15:19 EST by Karthik CLA
Modified: 2011-12-30 22:26 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karthik CLA 2011-11-10 15:19:35 EST
Build Identifier: M20110210-1200

The page numbers generated by IRunAndRenderTask is incorrect. If i use IRuntask first and generate rptdocument and IRenderTask to render rptdocument, the page numbers are getting correctly generated. The problem with this approach is i do not want to create an intermediate file as this could affect the performance. Kindly fix or provide an alternate solution.

Reproducible: Always

Steps to Reproduce:
1. Add Auto text for page number in master page
2. In report viewer, Run -> view report  -> as PDF
3. The generated pdf has incorrect page numbers.
4. The same things works when you view report -> in webviewer and then export to pdf.
Comment 1 Sissi Zhu CLA 2011-12-08 03:46:52 EST
Please provide detailed information about how you use page number in IRunAndRenderTask. 

I pull "page number" auto text to masterpage, and it works fine.
Comment 2 Liwen Chen CLA 2011-12-30 02:26:06 EST
Hi Karthik,

Does your report use auto layout? or fix layout? It can be found under Property Editor->General->Layout Preference.

For Fix layout, both pdf page number should be the same.

For auto layout, IRunandRenderTask and iruntask/irendertask use different pagination strategies, so they has different page number, but there still a way to set the pagination in the report to make them export same page count.

Could you attach your report?

Thanks.