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/RunFragment.java
.getAction( ) ) )
				{
					isPrint = true;
					out = new ByteArrayOutputStream( );
				}
				BirtRunAndRenderActionHandler runAndRenderHandler = new BirtRunAndRenderActionHandler(
						context, op, upResponse, out );
				runAndRenderHandler.execute( );
				if ( isPrint )
				{
					InputStream inputStream = new ByteArrayInputStream( out
							.toString( ).getBytes( ) );
					BirtUtility.doPrintAction( inputStream, request, response );
				}
			}
		}
		catch ( RemoteException e )
		{
			AxisFault fault = (AxisFault) e;
			
			
			
			
			response.setContentType( "text/html; charset=utf-8" ); 
			BirtUtility.writeMessage( response.getOutputStream( ),
					ParameterAccessor.htmlEncode( fault.getFaultString( ) ),
					IBirtConstants.MSG_ERROR );
		}
	}
}