Bug 208201 Grid width doesn't work in word and excel.[1202][1203]
Description: Grid width doesn't work in word. Build number:2.2.2.v20071031 Steps to reproduce: 1. Insert a grid (1*1). 2. Insert a label to grid cell. 3. Select the grid and set width as 0.5in 4. Preview in word and excel. Expected result: Display grid with 0.5in width. Actual result: Display grid with 100% width. Error log:n/a
engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/layout/ExcelLayoutEngine.java
public Data createData( Object txt, StyleEntry entry )
	{
		String type = Data.STRING;
		
		if ( Data.NUMBER.equals( ExcelUtil.getType( txt )))
		{
			String format = ExcelUtil.getPattern( txt, 
					entry.getProperty( StyleConstant.NUMBER_FORMAT_PROP ));
			entry.setProperty( StyleConstant.NUMBER_FORMAT_PROP, format );			
			type = Data.NUMBER;
		}
		else if ( Data.DATE.equals( ExcelUtil.getType( txt )))
		{
			String format = ExcelUtil.getPattern( txt, 
					entry.getProperty( StyleConstant.DATE_FORMAT_PROP ) );
			entry.setProperty( StyleConstant.DATE_FORMAT_PROP, format );			
			type = Data.DATE;
		}
		
		entry.setProperty( StyleConstant.DATA_TYPE_PROP, type );
		return new Data( txt, entry, type );
	}
	private void addData( Data data )
	{
		getCurrentContainer( ).setEmpty( false );
		int col = axis.getCoordinate( data.getRule( ).getStart( ) );
		int span = axis.getCoordinate( data.getRule( ).getEnd( ) ) - col;
		addDatatoCache( col, data );
		for ( int i = col + 1; i < col + span; i++ )
		{