Bug 156166 Error occour when previewing attached report in web viewer.
Decription:Error occour when previewing attached report in web viewer. Steps to reproduce: 1.run attached reports in web viewer. Expeceted results: preview properly Actual results: Error occour when previewing the reports in web viewer while it works properly in html and PDF
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/document/RowSaveUtil.java
catch ( IOException e )
		{
			throw new DataException( ResourceConstants.RD_SAVE_ERROR,
					e,
					"Result Data" );
		}
	}
	/**
	 * init save environment
	 */
	private void initSave( boolean finish ) throws DataException
	{
		if ( inited == true )
			return;
		inited = true;
		try
		{
			int totalRowCount = 0;
			if ( finish == true )
				totalRowCount = rowCount;
			else
				totalRowCount = rowCount == 0 ? 1 : rowCount;
			
			IOUtil.writeInt( this.rowExprsDos, totalRowCount );
			
			Map map = new HashMap();
			Iterator it = exprNameSet.iterator( );
			while(it.hasNext( ))
			{
				Object value = it.next( );