Bug 206283 Fail to display table caption in word and excel.
Description: Fail to display table caption in word and excel. Build number:2.2.2.v20071011 Steps to reproduce: 1. Create data source and dataset. 2. Drag dataset to layout and add a caption for the table. 3. Preview in doc and xls. Expected result: Display caption content above table. Actual result: No caption display in word and excel. Error log:n/a
engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/layout/ExcelLayoutEngine.java
Data data = createData(txt, entry);
		data.setHyperlinkDef( link );
		data.setRule( rule );
		addData( data );
	}
	public Data createData( Object txt, StyleEntry entry )
	{
		if ( ExcelUtil.getType( txt ).equals( Data.NUMBER ) )
		{
			String format = ExcelUtil.getPattern( txt, entry
					.getProperty( StyleConstant.NUMBER_FORMAT_PROP ) );
			entry.setProperty( StyleConstant.NUMBER_FORMAT_PROP, format );
			entry.setProperty( StyleConstant.DATA_TYPE_PROP, Data.NUMBER );
			return new Data( txt, entry, Data.NUMBER );
		}
		else if ( ExcelUtil.getType( txt ).equals( Data.DATE ) )
		{
			String format = ExcelUtil.getPattern( txt, entry
					.getProperty( StyleConstant.DATE_FORMAT_PROP ) );
			entry.setProperty( StyleConstant.DATE_FORMAT_PROP, format );
			entry.setProperty( StyleConstant.DATA_TYPE_PROP, Data.DATE );
			return new Data( txt, entry, Data.DATE );
		}
		entry.setProperty( StyleConstant.DATA_TYPE_PROP, Data.STRING );
		return new Data( txt, entry, Data.STRING );
	}
	private void addData( Data data )
	{
		getCurrentContainer( ).setEmpty( false );
		int col = axis.getCoordinate( data.getRule( ).getStart( ) );