Bug 176141 Page break displayed in html when hyperlinked to rptdocument file[04]
Page break displayed in html when hyperlinked to rptdocument file[04] Build number :2.2.0.v20070302-1053 Steps to reproduce: 1.new a report :target.rptdesign 2.insert a label ,input "page 1" insert another label,input "page 2",set page break before to this label 3.preview in web viewer and copy target.rptdocument to the project folder 4.new another report:link.rptdesign 5.insert a label ,input "link to a rptdocument ",select the label and switch to hyperlink,set Drill through to the target.rptdocument 6.preview in layout ,click the label Expected result: No page break displayed in html Actual result: Master page footer displayed ,see attached screen shot Error log: N/A
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RenderTask.java
/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.api.IRenderTask#setInstanceID( InstanceID iid )
	 */
	public void setInstanceID( InstanceID iid ) throws EngineException
	{
		innerRender = new ReportletRender( iid );
	}
	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.api.IRenderTask#setPageRange( String pageRange )
	 */
	public void setPageRange( String pageRange ) throws EngineException
	{
		innerRender = new PageRangeRender( parsePageSequence( pageRange, reportDoc.getPageCount( )) );
	}
	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.api.IRenderTask#setBookmark( String bookmark )
	 */
	public void setBookmark( String bookmark ) throws EngineException
	{
		long pageNumber = reportDoc.getPageNumber( bookmark );
		if ( pageNumber <= 0 ) {
			throw new EngineException( "Can not find bookmark :{0}", bookmark ); 
		}
		innerRender = new PageRender( pageNumber );
	}
	public void setReportlet( String bookmark ) throws EngineException
	{
		innerRender = new ReportletRender( bookmark ); 
	}
	private abstract class InnerRender