Jump to content

embed rtf text


sravyts

Recommended Posts

Hey,

 

We are using JasperReports to generate reports in rtf. But the resulting rtf files should contain some autotexts.

I succeeded in doing this a few times with jasperreports 1.3.0 by adding rtf code in a static text element:

<text><![CDATA[{fieldflddirty{*fldinst {AUTOTEXT ADDRESSEE.CODE \* MERGEFORMAT }}{fldrslt {ADDRESSEE.CODE}}}]]></text>

 

But the result of the exported rtf files was not always ok (sometimes it worked, and sometimes not), so I upgraded to jasperreports 2.0.0 hoping it would be solved.

But now I don't succeed in doing it anymore because all backslashes are replaced by double backslashes in the resulting rtf.

 

I don't see a way to avoid this in the code. Is this something you would allow in the future or do you see a workaround I can implement?

 

 

Wkr,

Sofie

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 2 months later...

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