Bug 153537 Event Handler didn't work properly in masterpage
Steps to reproduce: 1.Run the attached report in Web Viewer, it works well 2.Click "print" to convert the output in PDF Expected result: Masterpage has the same view in Web Viewer and PDF Actual result: Masterpage didn't get right view
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java
try
		{
			InputStream in = url.openStream( );
			ByteArrayOutputStream out = new ByteArrayOutputStream( );
			byte[] buffer = new byte[1024];
			int size = in.read( buffer );
			while ( size != -1 )
			{
				out.write( buffer, 0, size );
				size = in.read( buffer );
			}
			byte[] script = out.toByteArray( );
			execute( new String( script, "UTF-8" ), fileName, 1 ); 
			in.close( );
		}
		catch ( IOException ex )
		{
			log.log( Level.SEVERE,
					"loading external script file " + fileName + " failed.", 
					ex );
			addException( new EngineException(
					MessageConstants.SCRIPT_FILE_LOAD_ERROR, url.toString( ),
					ex ) ); 
			
		}
	}
	/**
	 * get current scope
	 *