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[] npos = new int[table.getColumnCount( )];
		npos[0] = start;
		for ( int i = 1; i < table.getColumnCount( ); i++ )
		{
			npos[i] = npos[i - 1] + table.getColumnWidth( i - 1 );
		}
		int[] scale = axis.getRange( start, rule.getEnd( ) );
		for ( int i = 0; i < scale.length - 1; i++ )
		{
			int sp = scale[i];
			int se = scale[i + 1];
			int[] range = inRange( sp, se, npos );
			if ( range.length > 0 )
			{
				int pos = axis.getCoordinate( sp ) - detal;
				cache.insertColumns( pos, range.length );
				for ( int j = 0; j < range.length; j++ )
				{
					axis.addCoordinate( range[j] );
				}
			}
		}
		XlsContainer container = createContainer( rule, style );
		XlsTable tcontainer = new XlsTable( table, container );
		addContainer( tcontainer );
		tables.push( tcontainer );
	}
	private int[] inRange( int start, int end, int[] data )
	{
		int[] range = new int[data.length];