Bug 213826 The image can not be shown when using event handler to set image [0800]
Description: The image can not be shown when using event handler to set image. Build number: 2.2.2.v20071225-0630 Steps to reproduce: 1. Copy the attached images and report design to the same folder. 2. New a java project and import the attached java file. 3. Preview the attached report design. Expected result: The image is shown. Actual result: The image is not shown when preview. Error log: N/A
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/presentation/LocalizedContentVisitor.java
public Object visitAutoText(IAutoTextContent autoText, Object value)
	{
		int type = autoText.getType( );
		if ( type == IAutoTextContent.PAGE_NUMBER )
		{
			autoText.setText( String.valueOf( context.getPageNumber( ) ) );
		}
		else if ( type == IAutoTextContent.TOTAL_PAGE )
		{
			long totalPage = context.getTotalPage( );
			if ( totalPage <= 0 )
			{
				autoText.setText( "---" );
			}
			else
			{
				autoText.setText( String.valueOf( totalPage ) );
			}
		}
		handleOnRender( autoText );
		return value;
	}
	/**
	 * handle the foreign content object.
	 * 
	 * Foreign content can be created by following design element:
	 * <li> Text(HTML). It will create a TEMPLATE_TYPE foreign object.
	 * <li> MultiLine(HTML). It will create a HTML_TYPE forign object
	 * <li> MultiLine(PlainText).It will create a TEXT_TYPE foreign object
	 * <li> Extended item. It will create a