Bug 197929 Fail to preview document from BIRT2.1.3 in BIRT2.2.1[0900]
Description: Fail to preview document from BIRT2.1.3 in BIRT2.2.1 in pdf format with frameset servlet Build number:2.2.1.v20070726 Steps to reproduce: 1. Preview attached document in web viewer. 2. Click Print As PDF button. Expected result: Display content in pdf. Actual result: damanged file. Error log:n/a
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/ir/EngineIRReader.java
String designVersion = IOUtil.readString( dis );
		if ( checkDesignVersion && !DesignSchemaConstants.REPORT_VERSION.equals( designVersion ) )
		{
			throw new IOException( "un-compatable design version" 
					+ designVersion );
		}
		reportDesign = new Report( );
		if ( version == 0L || version == 1L )
		{
			
			IOUtil.readString( dis );
		
			
			IOUtil.readString( dis );
		}
		
		int styleCount = IOUtil.readInt( dis );
		for ( int i = 0; i < styleCount; i++ )
		{
			String styleName = IOUtil.readString( dis );
			IStyle style = readStyle( dis );
			reportDesign.addStyle( styleName, style );
		}
		String rootStyleName = IOUtil.readString( dis );
		reportDesign.setRootStyleName( rootStyleName );
		
		Map namedExpressions = IOUtil.readMap( dis );
		if ( namedExpressions != null )
		{
			reportDesign.getNamedExpressions( ).putAll( namedExpressions );