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

.rtf file data is not comming properly while printing in report .


pratapkumar.martha

Recommended Posts

Hi,

 

I created a .rtf file with below content.

cell 1

lots of text in cell two

cell 3

When I exported rtf file into jasper report using Markup as rtf ,I got only text (below data)

cell 1lots of text in cell twocell 3

I am using TIBCO Jaspersoft Studio-6.1.1.final version jasper.

How I can get same data(means table ) in report same as showing in rtf ?

 

Thanks in Advance.

 

Link to comment
Share on other sites

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

Top Posters In This Topic

Top Posters In This Topic

Hi,

Still I am facing the same issue. Anyone have any update on this question.

Below I am adding JRXML file . Please have a look.

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.1.1.final using JasperReports Library version 6.1.1  -->
<!-- 2015-11-16T12:10:05 -->
<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="Test_RTF" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="e4e612e9-7787-4540-a6b9-b2d362a29f32">
    <property name="com.jaspersoft.studio.data.sql.tables" value=""/>
    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="Sample DB"/>
    <queryString>
        <![CDATA[select '{rtf1ansideff0
trowd
clbrdrtbrdrsclbrdrlbrdrsclbrdrbbrdrsclbrdrrbrdrs
cellx1000
clbrdrtbrdrsclbrdrlbrdrsclbrdrbbrdrsclbrdrrbrdrs
cellx2000
clbrdrtbrdrsclbrdrlbrdrsclbrdrbbrdrsclbrdrrbrdrs
cellx3000
cell 1intblcell
lots of text in cell twointblcell
cell 3intblcell
row
}' rtf_simple from dual]]>
    </queryString>
    <field name="RTF_SIMPLE" class="java.lang.String"/>
    <background>
        <band splitType="Stretch"/>
    </background>
    <detail>
        <band height="125" splitType="Stretch">
            <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                <reportElement x="110" y="30" width="410" height="30" uuid="43e8a2fb-5db5-4290-8db7-51c93c330f22"/>
                <textElement markup="rtf"/>
                <textFieldExpression><![CDATA[$F{RTF_SIMPLE}]]></textFieldExpression>
            </textField>
        </band>
    </detail>
</jasperReport>
 

Here I added rtf  text code into select statement  using dual. If I am adding same text into rtf file .

I am getting text with border, but when I am adding it into jasper report I am getting text only.

Its very urgent .

 

Thanks in advance.

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