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
}
		}
		renderOption.setOutputStream( outputStream );
		renderOption.setOutputFormat( format );
		renderOption.setOption( IHTMLRenderOption.MASTER_PAGE_CONTENT,
				new Boolean( masterPage ) );
		renderOption.setOption( IHTMLRenderOption.HTML_RTL_FLAG, new Boolean(
				rtl ) );
		ViewerHTMLActionHandler handler = new ViewerHTMLActionHandler( locale,
				rtl, masterPage, format );
		String resourceFolder = ParameterAccessor.getParameter( request,
				ParameterAccessor.PARAM_RESOURCE_FOLDER );
		handler.setResourceFolder( resourceFolder );
		renderOption.setActionHandler( handler );
		if ( reportTitle != null )
			renderOption.setOption( IHTMLRenderOption.HTML_TITLE, reportTitle );
		if ( renderOption instanceof IHTMLRenderOption )
		{
			boolean isEmbeddable = false;
			if ( embeddable != null )
				isEmbeddable = embeddable.booleanValue( );
			if ( IBirtConstants.SERVLET_PATH_RUN.equalsIgnoreCase( servletPath ) )
				isEmbeddable = true;
			( (IHTMLRenderOption) renderOption ).setEmbeddable( isEmbeddable );
		}
		renderOption.setOption( IHTMLRenderOption.INSTANCE_ID_LIST, activeIds );
		
		initializeEmitterConfigs( request, renderOption.getOptions( ) );
		runAndRenderTask.setRenderOption( renderOption );