Note that there are some explanatory texts on larger screens.

plurals
  1. POJasperReports: generation error from java with external fonts
    primarykey
    data
    text
    <p>My program generates an error for arabic letter :</p> <pre><code>cannot assign instance of net.sf.jasperreports.engine.base.JRBaseStaticText to field net.sf.jasperreports.engine.base.JRBaseParagraph.paragraphContainer of type net.sf.jasperreports.engine.JRParagraphContainer in instance of net.sf.jasperreports.engine.base.JRBaseParagraph </code></pre> <p>I am using:</p> <ul> <li>iReport 4.0.2</li> <li>Windows XP</li> <li>jasperreports-fonts-4.0.2.jar</li> <li>jasperreports 4.0.2.jar</li> <li>jasperreports-extensions-3.5.3</li> </ul> <p>My .jrxml file is:</p> <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report1" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"&gt; &lt;parameter name="strTitle" class="java.lang.String"/&gt; &lt;field name="vchDhirams" class="java.lang.String"/&gt; &lt;background&gt; &lt;band splitType="Stretch"/&gt; &lt;/background&gt; &lt;title&gt; &lt;band height="21" splitType="Stretch"&gt; &lt;staticText&gt; &lt;reportElement x="221" y="1" width="100" height="20"/&gt; &lt;textElement markup="none"/&gt; &lt;text&gt;&lt;![CDATA[$P{strTitle}]]&gt;&lt;/text&gt; &lt;/staticText&gt; &lt;/band&gt; &lt;/title&gt; &lt;pageHeader&gt; &lt;band height="35" splitType="Stretch"/&gt; &lt;/pageHeader&gt; &lt;columnHeader&gt; &lt;band height="37" splitType="Stretch"&gt; &lt;staticText&gt; &lt;reportElement x="294" y="17" width="135" height="20"/&gt; &lt;textElement&gt; &lt;font pdfEncoding="Identity-H" isPdfEmbedded="true"/&gt; &lt;/textElement&gt; &lt;text&gt;&lt;![CDATA[ستلام قسيمة]]&gt;&lt;/text&gt; &lt;/staticText&gt; &lt;/band&gt; &lt;/columnHeader&gt; &lt;detail&gt; &lt;band height="125" splitType="Stretch"/&gt; &lt;/detail&gt; &lt;columnFooter&gt; &lt;band height="45" splitType="Stretch"/&gt; &lt;/columnFooter&gt; &lt;pageFooter&gt; &lt;band height="54" splitType="Stretch"/&gt; &lt;/pageFooter&gt; &lt;summary&gt; &lt;band height="42" splitType="Stretch"/&gt; &lt;/summary&gt; &lt;/jasperReport&gt; </code></pre> <p>Where is my fault? Please suggest me.</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload