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/layout/ExcelLayoutEngine.java
int count = 0;
		for ( int i = 0; i < data.length; i++ )
		{
			if ( ( data[i] > start ) && ( data[i] < end ) )
			{
				count++;
				range[count] = data[i];
			}
		}
		int[] result = new int[count];
		int j = 0;
		for ( int i = 0; i < range.length; i++ )
		{
			if ( range[i] != 0 )
			{
				result[j] = range[i];
				j++;
			}
		}
		return result;
	}
	public void addCell( int col, int span, IStyle style )
	{
		XlsTable table = (XlsTable) tables.peek( );
		Rule rule = table.getColumnRule( col, span );
		addContainer( createContainer( rule, style ) );
	}
	public void endCell( )
	{
		endContainer( );