Bug 340767 Fail to generate concurrent reports containing CRLF and <BR>
engine/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/AbstractEmitterImpl.java
|| "transparent".equalsIgnoreCase( cssText );
	}
	private void writeHeaderFooter( ) throws IOException, BirtException
	{
		IStyle style = previousPage.getStyle( );
		String backgroundHeight = style.getBackgroundHeight( );
		String backgroundWidth = style.getBackgroundWidth( );
		if ( previousPage.getPageHeader( ) != null || backgroundHeight != null
				|| backgroundWidth != null )
		{
			SimpleMasterPageDesign master = (SimpleMasterPageDesign) previousPage
					.getGenerateBy( );
			wordWriter.startHeader( !master.isShowHeaderOnFirst( ) && previousPage.getPageNumber( ) == 1,
					headerHeight, contentWidth );
			if ( backgroundHeight != null || backgroundWidth != null )
			{
				String backgroundImageUrl = EmitterUtil.getBackgroundImageUrl(
						style, reportContent.getDesign( ).getReportDesign( ),
						reportContext.getAppContext( ) );
				wordWriter.drawDocumentBackgroundImage(
						backgroundImageUrl, backgroundHeight, backgroundWidth,
						WordUtil.twipToPt( topMargin ), WordUtil
								.twipToPt( leftMargin ), WordUtil
								.twipToPt( pageHeight ), WordUtil
								.twipToPt( pageWidth ) );
			}
			contentVisitor.visitChildren( previousPage.getPageHeader( ), null );
			wordWriter.endHeader( );
		}
		if ( previousPage.getPageFooter( ) != null )