Bug 203026 Can not export chart to doc.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
if ( !isDesigner )
			baseURL = ParameterAccessor.getBaseURL( );
		if ( baseURL == null )
		{
			
			if ( ParameterAccessor.isOpenAsAttachment( request )
					|| !ParameterAccessor.PARAM_FORMAT_HTML
							.equalsIgnoreCase( ParameterAccessor
									.getFormat( request ) ) )
			{
				baseURL = request.getScheme( ) + "://" 
						+ request.getServerName( ) + ":" 
						+ request.getServerPort( );
			}
			else
			{
				baseURL = ""; 		
			}
		}
		
		baseURL += request.getContextPath( );
		HTMLRenderOption renderOption = new HTMLRenderOption( );
		renderOption.setImageDirectory( ParameterAccessor
				.getImageTempFolder( request ) );
		renderOption.setBaseImageURL( baseURL + imageBaseUrl );
		if ( servletPath != null && servletPath.length( ) > 0 )
		{
			renderOption.setBaseURL( baseURL + servletPath );
		}
		else