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
case FIELD_TOC :
				String toc = IOUtil.readString( in );
				design.setTOC( toc );
				break;
			case FIELD_ON_CREATE :
				String onCreate = IOUtil.readString( in );
				design.setOnCreate( onCreate );
				break;
			case FIELD_ON_RENDER :
				String onRender = IOUtil.readString( in );
				design.setOnRender( onRender );
				break;
			case FIELD_ON_PAGE_BREAK :
				String onPageBreak = IOUtil.readString( in );
				design.setOnPageBreak( onPageBreak );
				break;
			case FIELD_VISIBILITY :
				VisibilityDesign visibility = readVisibility( in );
				design.setVisibility( visibility );
				break;
			case FIELD_ACTION :
				ActionDesign action = readAction( in );
				design.setAction( action );
				break;
			default :
				readStyledElementField( in, design, fieldType );
		}
	}
	protected void readMasterPageField( DataInputStream in,
			MasterPageDesign design, short fieldType ) throws IOException