Problem in allignment while export report in rtf

Hi,

I am new to Jasper report.
In our project we are providing facility export given report in to various format such as csv,pdf,excel,rtf etc.
Now while exporting report in csv,pdf,excel report is coming properly alligned but while i try to export it in rtf format i m facing major allignment problem.

It's going almost out of page.I am useing JRRtfExporter() to export in to rtf format.
Is there any way to provide allignment information before exporting that should be followed by export?

Please reply on this as soon as possible.

Thanks in advance for your help.

Mohit.
mitra4umohit's picture
Joined: Aug 15 2006 - 10:49pm
Last seen: 16 years 9 months ago

5 Answers:

Hi,

I'm not sure about what alignment problems in RTF you are talking about.
Seeing some generated files would help understand.

You can attach them here in a ZIP.

Thank you,
Teodor
teodord's picture
46810
Joined: Jun 30 2006 - 9:00am
Last seen: 4 days 6 hours ago
Hi

Thank you for your reply.
Please find file in attachment.
I am not able to alligne this columns from jasper code in my project.
Let me know wht i need to do?

Mohit. [file name=rtfreport.zip size=99109]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/rtf...
mitra4umohit's picture
Joined: Aug 15 2006 - 10:49pm
Last seen: 16 years 9 months ago
Hi,

And the PDF? How all this looks in PDF?

Thanks,
Teodor
teodord's picture
46810
Joined: Jun 30 2006 - 9:00am
Last seen: 4 days 6 hours ago
Hi,

I'm totally new to Jasper Reports and have just "inherited" a bunch of reports from senior programmers in my company. The issue reported in this topic seems to be similar to mine - I also have alignment problems exporting to rtf, fields being printed out in separate lines and/or wrong order, compared to preview in iReports and pdf output. At times, the rtf file created is blank (contains no text, only some formatting information).

Is there any known reason for that, like rtf file format supporting only a limited set of attributes one can set via iReport? I attach one of the jrxml files and its corresponding rtf report, hoping someone would look into them.

I'd also be grateful for pointing me some tutorial mentioning those details.

Thanks,

[file name=PersFragDE1_16.zip size=7108]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/Per...
elfeczka's picture
Joined: Nov 7 2006 - 6:51pm
Last seen: 16 years 6 months ago
Hi,

The RTF file you have sent is not generated by our RTF exporter.
What version of JasperReports are you using?
Try an RTF preview in iReport.

I hope this helps.
Teodor
teodord's picture
46810
Joined: Jun 30 2006 - 9:00am
Last seen: 4 days 6 hours ago
Feedback