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/EngineFragment.java
if ( ParameterAccessor.PARAM_FORMAT_PDF.equalsIgnoreCase( format ) )
			{
				response.setContentType( "application/pdf" ); 
			}
			else
			{
				String mimeType = ReportEngineService.getInstance( )
						.getMIMEType( format );
				if ( mimeType != null && mimeType.length( ) > 0 )
					response.setContentType( mimeType );
				else
					response.setContentType( "application/octet-stream" ); 
			}
			if ( !ParameterAccessor.isGetImageOperator( request ) )
			{
				String filename = ParameterAccessor.generateFileName( request );
				response
						.setHeader(
								"Content-Disposition", openType + "; filename=\"" + filename + "\"" ); 
			}
		}
	}
	/**
	 * Render the report in html/pdf format by calling engine service.
	 * 
	 * @param request
	 *            incoming http request
	 * @param response
	 *            http response
	 * @exception ServletException