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
private Stack containers = new Stack( );
	private Stack tables = new Stack( );
	private Hashtable links = new Hashtable( );
	public ExcelLayoutEngine( PageDef page )
	{
		axis = new AxisProcessor( );
		int[] init = new int[3];
		init[0] = page.leftmargin;
		init[1] = page.contentwidth + init[0];
		init[2] = page.rightmargin + init[1];
		axis.addCoordinates( init );
		Rule rule = new Rule( init[0], init[1] - init[0] );
		cache = new DataCache( 1 );
		engine = new StyleEngine( this );
		detal = init[0] == 0 ? 0 : 1;
		left = init[0];
		containers.push( createContainer( rule, page.style ) );
	}
	public XlsContainer getCurrentContainer( )
	{
		return (XlsContainer) containers.peek( );
	}
	public Stack getContainers( )
	{
		return containers;
	}
	public void addTable( TableInfo table, IStyle style )
	{
		Rule rule = getCurrentContainer( ).getRule( );
		int start = rule.getStart( );