Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363532

Summary: Version: 3.6.2
Product: z_Archived Reporter: Karthik <karthik.ranganathan>
Component: BIRTAssignee: Birt-Build <Birt-Build-inbox>
Status: NEW --- QA Contact: Sissi Zhu <szhu>
Severity: normal    
Priority: P3 CC: bluesoldier, kazm, lchen, szhu
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.