Bug 189586 [smoke]Fail to preview template item in xls format..[1203]
engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/ExcelEmitter.java
private StyleEngine engine = null;
	private ListBuffer lb;
	private OutputStream out = null;
	private List charts = new ArrayList( );
	private ChartConverter chartConverter = new ChartConverter( );
    
	private Hashtable bookmarkList = new Hashtable( );
	
	public void end( IReportContent report )
	{
		try
		{
			
			lb.flush( true, engine );
			ExcelWriter writer = new ExcelWriter( out );
			writer.writeDeclarations( );
			writer.declareStyles( engine.getStyleIDMap( ) );
			writer.startSheet( );
			writer.startTable( width );
			writeDatas( writer );
			writer.endTable( );
			writer.closeSheet( );
			
			for ( int i = 0; i < charts.size( ); i++ )
			{
				File temp = (File) charts.get( i );
				writer.insert( temp );
				temp.delete( );
			}
			writer.close( true );