Jump to content
We've recently updated our Privacy Statement, available here ×

Error filling print... Could not resolved style(s): Arial Unicode, Arial


dirai

Recommended Posts

After creating a new report and running it I get the following error:

Error filling print... Could not resolved style(s): Arial Unicode, Arial
net.sf.jasperreports.engine.JRRuntimeException: Could not resolved style(s): Arial Unicode, Arial      at net.sf.jasperreports.engine.fill.JRFillObjectFactory.checkUnresolvedReferences(JRFillObjectFactory.java:1610)      at net.sf.jasperreports.engine.fill.JRFillObjectFactory.setStyles(JRFillObjectFactory.java:1537)      at net.sf.jasperreports.engine.fill.JRBaseFiller.loadStyles(JRBaseFiller.java:962)      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:835)      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:801)      at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:89)      at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601)      at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:517)      at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:910)      at java.lang.Thread.run(Unknown Source) 
Print was not filled. Try using an EmptyDataSource...
 
What can be the cause for this? Please help.

 

Code:
<?xml version="1.0" encoding="UTF-8"  ?><!-- Created with iReport - A designer for JasperReports --><!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"><jasperReport		 name="MC2"		 language="groovy"		 columnCount="1"		 printOrder="Vertical"		 orientation="Landscape"		 pageWidth="650"		 pageHeight="595"		 columnWidth="610"		 columnSpacing="0"		 leftMargin="20"		 rightMargin="20"		 topMargin="20"		 bottomMargin="20"		 whenNoDataType="NoPages"		 isTitleNewPage="false"		 isSummaryNewPage="false"		 isIgnorePagination="true">	<property name="ireport.scriptlethandling" value="0" />	<property name="ireport.encoding" value="UTF-8" />	<import value="java.util.*" />	<import value="net.sf.jasperreports.engine.*" />	<import value="net.sf.jasperreports.engine.data.*" />	<parameter name="fromdate" isForPrompting="true" class="java.lang.String">		<defaultValueExpression ><![CDATA[$P{fromdate}]]></defaultValueExpression>	</parameter>	<parameter name="todate" isForPrompting="true" class="java.lang.String">		<defaultValueExpression ><![CDATA[$P{todate}]]></defaultValueExpression>	</parameter>	<parameter name="site_id" isForPrompting="true" class="java.lang.String"/>	<parameter name="vendor_id" isForPrompting="false" class="java.lang.String"/>	<parameter name="supplier_id" isForPrompting="false" class="java.lang.String"/>	<parameter name="JR_TIME_ZONE_NAME" isForPrompting="false" class="java.lang.String">		<defaultValueExpression ><![CDATA["Europe/London"]]></defaultValueExpression>	</parameter>	<parameter name="JR_LANGUAGE" isForPrompting="false" class="java.lang.String">		<defaultValueExpression ><![CDATA["EN_GB"]]></defaultValueExpression>	</parameter>	<parameter name="JR_TEMPLATE_DIR" isForPrompting="false" class="java.lang.String">		<defaultValueExpression ><![CDATA["C:/DCSI/sandboxes/dlxwhsr_20072_branch/server/run/jrtemplates"]]></defaultValueExpression>	</parameter>	<queryString><![CDATA[sELECT bookdet.supplier_id supplier_id, bookhead.site_id site_id, count(1) num_deliveriesFROM booking_in_diary_details bookdet,booking_in_diary bookheadWHERE NOT EXISTS  (SELECT 1  FROM upi_receipt_header  WHERE upi_receipt_header.bookref_id = bookhead.bookref_id  )AND bookhead.due_dstamp > sysdate - 60AND bookhead.status              IN ('Released', 'In Progress') and bookhead.bookref_id = bookdet.bookref_idAND bookhead.due_dstamp >= to_timestamp_tz($P{fromdate},'DD-MON-YYYY')AND bookhead.due_dstamp <= to_timestamp_tz($P{todate},'DD-MON-YYYY')AND bookhead.site_id    = nvl($P{site_id},bookhead.site_id)GROUP BY bookdet.supplier_id,  bookhead.site_idorder BY bookdet.supplier_id,  bookhead.site_id]]></queryString>	<field name="SUPPLIER_ID" class="java.lang.String"/>	<field name="SITE_ID" class="java.lang.String"/>	<field name="NUM_DELIVERIES" class="java.math.BigDecimal"/>		<background>			<band height="0"  isSplitAllowed="true" >			</band>		</background>		<title>			<band height="60"  isSplitAllowed="true" >				<staticText>					<reportElement						style="Arial Unicode"						x="0"						y="0"						width="610"						height="40"						key="ReportTitle"/>					<box>					<pen lineWidth="1.0" lineStyle="Solid"/>					<topPen lineWidth="1.0" lineStyle="Solid"/>					<leftPen lineWidth="1.0" lineStyle="Solid"/>					<bottomPen lineWidth="0.0" lineStyle="Solid"/>					<rightPen lineWidth="1.0" lineStyle="Solid"/></box>					<textElement textAlignment="Center" verticalAlignment="Middle">						<font fontName="Arial" size="18" isBold="true" isUnderline="true"/>					</textElement>				<text><![CDATA[booked Deliveries With No UPI Advice]]></text>				</staticText>				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Page" hyperlinkType="None"  hyperlinkTarget="Self" >					<reportElement						style="Arial"						x="0"						y="40"						width="610"						height="20"						key="FromdateToTodate"/>					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>					<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<bottomPen lineWidth="0.0" lineColor="#000000"/>					<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/></box>					<textElement textAlignment="Center" verticalAlignment="Middle">						<font fontName="Arial" pdfFontName="Arialuni.ttf" size="10" pdfEncoding ="Identity-H"/>					</textElement>				<textFieldExpression   class="java.lang.String"><![CDATA[$P{fromdate} + " To " + $P{todate}]]></textFieldExpression>				</textField>			</band>		</title>		<pageHeader>			<band height="0"  isSplitAllowed="true" >			</band>		</pageHeader>		<columnHeader>			<band height="28"  isSplitAllowed="true" >				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >					<reportElement						style="Arial"						mode="Opaque"						x="422"						y="0"						width="188"						height="28"						forecolor="#000000"						backcolor="#FFFFFF"						key="textNumberOfDeliveries"/>					<box>					<pen lineWidth="1.0"/>					<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/></box>					<textElement textAlignment="Center" verticalAlignment="Middle">						<font fontName="Arial" pdfFontName="Arialuni.ttf" size="9" isBold="true" pdfEncoding ="Identity-H"/>					</textElement>				<textFieldExpression   class="java.lang.String"><![CDATA["Number of Deliveries"]]></textFieldExpression>				</textField>				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >					<reportElement						style="Arial"						mode="Opaque"						x="0"						y="0"						width="214"						height="28"						forecolor="#000000"						backcolor="#FFFFFF"						key="textSiteId"/>					<box>					<pen lineWidth="1.0"/>					<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/></box>					<textElement textAlignment="Center" verticalAlignment="Middle">						<font fontName="Arial" pdfFontName="Arialuni.ttf" size="9" isBold="true" pdfEncoding ="Identity-H"/>					</textElement>				<textFieldExpression   class="java.lang.String"><![CDATA["Site Id"]]></textFieldExpression>				</textField>				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >					<reportElement						style="Arial"						mode="Opaque"						x="214"						y="0"						width="208"						height="28"						forecolor="#000000"						backcolor="#FFFFFF"						key="textVendor"/>					<box>					<pen lineWidth="1.0"/>					<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/></box>					<textElement textAlignment="Center" verticalAlignment="Middle">						<font fontName="Arial" pdfFontName="Arialuni.ttf" size="9" isBold="true" pdfEncoding ="Identity-H"/>					</textElement>				<textFieldExpression   class="java.lang.String"><![CDATA["Vendor"]]></textFieldExpression>				</textField>			</band>		</columnHeader>		<detail>			<band height="27"  isSplitAllowed="true" >				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >					<reportElement						style="Arial"						mode="Opaque"						x="0"						y="0"						width="214"						height="27"						forecolor="#000000"						backcolor="#FFFFFF"						key="textSiteId"/>					<box>					<pen lineWidth="1.0"/>					<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/></box>					<textElement textAlignment="Center" verticalAlignment="Middle">						<font fontName="Arial" pdfFontName="Arialuni.ttf" size="9" isBold="true" pdfEncoding ="Identity-H"/>					</textElement>				<textFieldExpression   class="java.lang.String"><![CDATA[$F{SITE_ID}]]></textFieldExpression>				</textField>				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >					<reportElement						style="Arial"						mode="Opaque"						x="214"						y="0"						width="208"						height="27"						forecolor="#000000"						backcolor="#FFFFFF"						key="textVendor"/>					<box>					<pen lineWidth="1.0"/>					<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/></box>					<textElement textAlignment="Center" verticalAlignment="Middle">						<font fontName="Arial" pdfFontName="Arialuni.ttf" size="9" isBold="true" pdfEncoding ="Identity-H"/>					</textElement>				<textFieldExpression   class="java.lang.String"><![CDATA[$F{SUPPLIER_ID}]]></textFieldExpression>				</textField>				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >					<reportElement						style="Arial"						mode="Opaque"						x="422"						y="0"						width="188"						height="27"						forecolor="#000000"						backcolor="#FFFFFF"						key="textNumberOfDeliveries"/>					<box>					<pen lineWidth="1.0"/>					<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>					<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/></box>					<textElement textAlignment="Center" verticalAlignment="Middle">						<font fontName="Arial" pdfFontName="Arialuni.ttf" size="9" isBold="true" pdfEncoding ="Identity-H"/>					</textElement>				<textFieldExpression   class="java.lang.String"><![CDATA[$F{NUM_DELIVERIES}]]></textFieldExpression>				</textField>			</band>		</detail>		<columnFooter>			<band height="0"  isSplitAllowed="true" >			</band>		</columnFooter>		<pageFooter>			<band height="0"  isSplitAllowed="true" >			</band>		</pageFooter>		<summary>			<band height="42"  isSplitAllowed="true" >			</band>		</summary></jasperReport>
Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I have come across something like this before where the Server where Jasper Reports is running doesn't have the system font installed and therefore the reference failed,  mostly see this when deploying the Report Server on Unix Servers.   One option is to make sure you are using a font this is avaialble on the Jasper Server exectuting the report, for myself, i set the following report property.

net.sf.jasperreports.awt.ignore.missing.font = true

This should at least allow you to determine if it is in fact that the font doesn't exist,  if I recall the above property will ignore the missing font and select the system font.  If works then you can figure out why your target system doesn't have the font or how you want to include it.

I think you can also include font packs with the report but I haven't tried that so can't comment.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...