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

Bug 347251

Summary: pageNumber not set accordingly
Product: z_Archived Reporter: Megha Nidhi Dahal <arpandahal>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: RESOLVED FIXED QA Contact: Xiaoying Gu <bluesoldier>
Severity: major    
Priority: P3 CC: bluesoldier, wyan
Version: 2.6.0   
Target Milestone: 3.7.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Sample designer depicting the problem none

Description Megha Nidhi Dahal CLA 2011-05-26 01:55:20 EDT
Created attachment 196628 [details]
Sample designer depicting the problem

Variable pageNumber is correctly set only if BIRT explicitly knows that there is a page break to happen. If you break a page intentionally, either by limiting the max rows in a page(page break interval) or by using explicit break requests, pageNumber is set correctly.
But, if the data is spanning more than one page and an implicit page break happens, the pageNumber is still set to 1.

This behavior is observed when exporting the data to pdf.

Attached is a simple designer.
Comment 1 Wei Yan CLA 2011-05-26 14:38:33 EDT
Can't reproduce your issue in the latest BIRT 3.7, seems has been resolved.
Comment 2 Megha Nidhi Dahal CLA 2011-05-27 04:38:29 EDT
Is the release BIRT 3.7 available for download. The latest one that is put for download is 2.6.2. Is this release expected in the near future?
Comment 3 Xiaoying Gu CLA 2011-05-29 22:17:18 EDT
(In reply to comment #2)
> Is the release BIRT 3.7 available for download. The latest one that is put for
> download is 2.6.2. Is this release expected in the near future?

3.7.0 release will be released at the end of June.

You can try out the latest RC2 build: http://download.eclipse.org/birt/downloads/build.php?build=M-R1-3.7RC2-201105241634