Bug 144577 Print in Web Viewer doesn't work in Linux
Description: Print in Web Viewer doesn't work in Linux Steps to reproduce: 1. New a report 2. Preview in Web Viewer and click Print button Expected result: Page is printed Actual result: Nothing happened.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/BirtUtility.java
{
			tx.printStackTrace( print );
		}
		catch ( Throwable ex )
		{
		}
		print.flush( );
		print.close( );
		return out.getBuffer( ).toString( );
	}
	/**
	 * Write message into output stream.
	 * 
	 * @param out
	 * @param message
	 * @param msgType
	 */
	public static void writeMessage( OutputStream out, String content,
			String msgType ) throws IOException
	{
		String fontColor = "black"; 
		if ( IBirtConstants.MSG_ERROR.equalsIgnoreCase( msgType ) )
			fontColor = "red"; 
		String message = "<html><head><title>" 
				+ BirtResources.getMessage( "birt.viewer.title." + msgType ) 
				+ "</title>"; 
		message += "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\"></head>"; 
		message += "<body style=\"background-color: #ECE9D8;\"><div style=\"font-size:10pt;\"><font color=\"" + fontColor + "\">" 
				+ content + "</font></div></body></html>"; 
		out.write( message.getBytes( ) );