Bug 180118 Enhance to print out source stack trace in preview mode.[0002]
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/layout/FramesetFragment.java
}
		else
		{
			String mimeType = ReportEngineService.getInstance( ).getMIMEType(
					format );
			if ( mimeType != null && mimeType.length( ) > 0 )
				response.setContentType( mimeType );
			else
				response.setContentType( "application/octet-stream" ); 
		}
		String filename = ParameterAccessor.generateFileName( request );
		response
				.setHeader(
						"Content-Disposition", openType + "; filename=\"" + filename + "\"" ); 
	}
	/**
	 * Render the report in html/pdf format by calling frameset service.
	 * 
	 * @param request
	 *            incoming http request
	 * @param response
	 *            http response
	 * @exception ServletException
	 * @exception IOException
	 */
	protected void doService( HttpServletRequest request,
			HttpServletResponse response ) throws ServletException,
			IOException, BirtException
	{
		BaseAttributeBean attrBean = (BaseAttributeBean) request