long totalPage = reportDoc.getPageCount( ); context.setTotalPage( totalPage ); reportContent.setTotalPage( totalPage );
	public AbstractReportReader( ExecutionContext context )	{		assert context.getDesign( ) != null;		assert context.getReportDocument( ) != null;		this.context = context;		report = context.getReport( );		if ( report == null )		{			ReportDesignHandle reportDesign = context.getDesign( );			report = new ReportParser( context ).parse( reportDesign );			context.setReport( report );		}		reportContent = (ReportContent) ContentFactory				.createReportContent( report );		context.setReportContent( reportContent );		dummyReportContent = new LabelContent( (ReportContent) reportContent );		dummyReportContent.setStyleClass( report.getRootStyleName( ) );		reportDoc = context.getReportDocument( );		TOCNode root = reportDoc.findTOC( "/" );		reportContent.setTOC( root );		dataEngine = context.getDataEngine( );		dataEngine.prepare( report, context.getAppContext( ) );		manager = new ReportItemReaderManager( this );	}