Bug 307321 BIRT Column page breaks do not respect page variables
When using an onPageEnd event to increment a page variable and a column page break on a table the html viewer recognizes the updated variable but if you export it to pdf the variable is not updated for every other page. See attached example.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/internal/document/v4/AbstractReportExecutor.java
IReportDocument reportDoc = context.getReportDocument( );
		long totalPage = reportDoc.getPageCount( );
		context.setTotalPage( totalPage );
		reportContent.setTotalPage( totalPage );
		dataEngine = context.getDataEngine( );
		dataEngine.prepare( report, context.getAppContext( ) );
		try
		{
			IDocArchiveReader archive = reportDoc.getArchive( );
			RAInputStream in = archive
					.getStream( ReportDocumentConstants.CONTENT_STREAM );
			reader = new CachedReportContentReaderV3( reportContent, in,
					context );
			in = archive.getStream( ReportDocumentConstants.PAGE_STREAM );
			pageReader = new CachedReportContentReaderV3( reportContent, in,
					context );
			hintsReader = new PageHintReader( reportDoc );
		}
		catch ( IOException ex )
		{
			close( );
			throw ex;
		}
	}
	public void close( )
	{
		if ( reader != null )
		{
			reader.close( );
			reader = null;