sravyts Posted August 21, 2007 Share Posted August 21, 2007 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 More sharing options...
lucianc Posted August 23, 2007 Share Posted August 23, 2007 This is something we don't actually support. The fact that it (sometimes) worked in 1.3.0 was accidental. If you think this would be a useful feature in JasperReports, please log as a feature request here. In the meantime, you can use a custom RTF exporter that doesn't escape backslashes. Regards,Lucian Link to comment Share on other sites More sharing options...
sravyts Posted November 13, 2007 Author Share Posted November 13, 2007 I created a feature request a while ago (after the previous post in this topic), but there doesn't seem to have been any development for this. Are we the only ones trying to embed rtf (or html) in reports?Are there workarounds? 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