Bug 205593 ClassCastException in excel emitter
Build ID: 2.2.1 Steps To Reproduce: 1. export a design with a dynamic text (Ex: print: "Page "+ pageNumber) in excel format 2. 3. More information: It tries to cast a DynamicTextItemDesign into a DataItemDesign. Thanks Nicolas
engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/ExcelEmitter.java
engine.addContainer( foreign.getComputedStyle( ), link );			
			contentVisitor.visitChildren( foreign, null );
			engine.endContainer( );
		}
	}
	public void startText( ITextContent text )
	{
	}	
	public void startData( IDataContent data )
	{		
		super.startData( data );
		HyperlinkDef url = parseHyperLink( data );
		engine.addData( data, data.getComputedStyle( ), url );
	}
	
	public void startImage( IImageContent image )
	{
		if ( image.getGenerateBy( ) instanceof ExtendedItemDesign )
		{
			ExtendedItemDesign eitem = (ExtendedItemDesign) image
					.getGenerateBy( );
			ExtendedItemHandle handle = (ExtendedItemHandle) eitem.getHandle( );
			String tagName = handle.getExtensionName( );
			if ( "chart".equalsIgnoreCase( tagName ) )
			{
				File res = chartConverter.convert( eitem, handle );
				if ( res != null )
				{
					charts.add( res );
				}