christmoney1 Posted February 11, 2022 Share Posted February 11, 2022 Hello everybody, I would like display : This is my first <<Report>> this is my expression "This is my "+ " " + "<b><<Report>><b/>" But it don't work Could you help me please?Sincerely Link to comment Share on other sites More sharing options...
bigalex Posted February 11, 2022 Share Posted February 11, 2022 Change the text field “Markup” to HTML Expression: "This is my "+ " " +"<"+"<"+"Report"+">"+">"or "This is my "+"<<Report>>" See Example below:<?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.16.0.final using JasperReports Library version 6.16.0-48579d909b7943b64690c65c71e07e0b80981928 --><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="Blank_A4_5" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="63aa31c7-2c3f-4f3e-aabd-cb707c3743db"> <queryString> <![CDATA[]]> </queryString> <background> <band splitType="Stretch"/> </background> <pageHeader> <band height="107" splitType="Stretch"> <textField> <reportElement x="120" y="10" width="310" height="30" uuid="ffee2868-50ed-4d72-82a4-b4c5d6d35885"/> <box> <pen lineWidth="0.25"/> </box> <textElement markup="html"/> <textFieldExpression><![CDATA["This is my "+ " " +"<"+"<"+"Report"+">"+">"]]></textFieldExpression> </textField> <staticText> <reportElement x="20" y="10" width="100" height="30" uuid="b06091aa-b4a7-40e2-b557-1d6b6899b85d"/> <box> <pen lineWidth="0.25"/> </box> <text><![CDATA]></text> </staticText> <staticText> <reportElement x="20" y="50" width="100" height="30" uuid="f975511e-1abd-4952-8286-37f21e8d9876"/> <box> <pen lineWidth="0.25"/> </box> <text><![CDATA[Default]]></text> </staticText> <textField> <reportElement x="120" y="50" width="310" height="30" uuid="ed073ad1-4d38-427f-855b-710a8fa8125b"/> <box> <pen lineWidth="0.25"/> </box> <textFieldExpression><![CDATA["This is my "+ " "+"<<Report>>"]]></textFieldExpression> </textField> </band> </pageHeader></jasperReport> Link to comment Share on other sites More sharing options...
christmoney1 Posted February 14, 2022 Author Share Posted February 14, 2022 Thank you very much Mr bigalex.It's work fine.Sincerely. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now