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

Text missing after special character in jasper report.


mehul.gupta

Recommended Posts

The text in my static text box has a special character like (%,/,#) in my case which when generated in pdf is missing and sometimes the special character is visible but text after that is missing.

below is my static text tags.

<staticText>   <reportElement mode="Opaque" x="769" y="0" width="41" height="30" backcolor="#BDBDBD" uuid="b8001e8d-b720-46a3-a117-293a5a881ad4"/>   <box>      <bottomPen lineWidth="1.0"/>   </box>   <textElement textAlignment="Center" markup="html">      <font fontName="SansSerif" isBold="true"/>   </textElement>   <text><![CDATA[Monthly % Goal]]></text>     </staticText>

 

<staticText>   <reportElement x="200" y="53" width="160" height="20" uuid="f7d2a9f7-53a6-46ce-8498-696e5a84381a"/>   <textElement textAlignment="Left" verticalAlignment="Middle" markup="html">      <font fontName="SansSerif" isBold="true"/>   </textElement>   <text><![CDATA[Inspection Required / Frequency]]</text></staticText>

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Hello Mehul,

 

In my case it is working fine and I can't reproduce the issue:

Can you provide more details about the problem?

 

<?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 8.0.2.final using JasperReports Library version hotfix-6.18.1-SNAPSHOT-2961835b2212865be359a43768fc5fa9b356148c  --><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="community" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b9d5d5d8-3ab1-45ab-bba5-9b9987678417">    <queryString>        <![CDATA[]]>    </queryString>    <background>        <band splitType="Stretch"/>    </background>    <title>        <band height="79" splitType="Stretch"/>    </title>    <pageHeader>        <band height="35" splitType="Stretch"/>    </pageHeader>    <columnHeader>        <band height="61" splitType="Stretch"/>    </columnHeader>    <detail>        <band height="125" splitType="Stretch">            <staticText>                <reportElement mode="Opaque" x="120" y="20" width="180" height="60" backcolor="#BDBDBD" uuid="b8001e8d-b720-46a3-a117-293a5a881ad4"/>                <box>                    <bottomPen lineWidth="1.0"/>                </box>                <textElement textAlignment="Center" markup="html">                    <font fontName="SansSerif" isBold="true"/>                </textElement>                <text><![CDATA[<strong>Monthly % Goal</strong>]]></text>            </staticText>        </band>    </detail>    <columnFooter>        <band height="45" splitType="Stretch"/>    </columnFooter>    <pageFooter>        <band height="54" splitType="Stretch"/>    </pageFooter>    <summary>        <band height="42" splitType="Stretch"/>    </summary></jasperReport>

 

 

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...