File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Use of JasperReports for RTf format with Spring framework -Not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Use of JasperReports for RTf format with Spring framework -Not working " Watch "Use of JasperReports for RTf format with Spring framework -Not working " New topic
Author

Use of JasperReports for RTf format with Spring framework -Not working

Lucky J Verma
Ranch Hand

Joined: Apr 11, 2007
Posts: 278
Hi all
I have reports for which i am using Jasper Reports and iReports with Spring Framework.Most of the reports are pdf/xls and wrking fine but one is required to be in RTf format.
Now i have views.properties file where i map the view class.

For RTf i know we dont have any view class as such but either
1. JRTFExporter can be used by first converting report to pdf then to rtf.
2.Or i can use JasperReportsMultiFormatView and customize it to work for RTF and use that customized view class iin views.properties.
This is what i am trying to do .
I wrote a customjasperreportmmultiformat class and pointed my view to this view class in views.properties and i am able to reach inside this class but one thing or another is not working.


mode code is




With this code , it streams my .do file on to output stream ,even if i replace it to pdf format (instead of RTF format.).
I googled a lot but dint find much content.
I hope someone can help me here in this forum.
Thanks



 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Use of JasperReports for RTf format with Spring framework -Not working
 
Similar Threads
InternalResourceViewResolver failing JUnit test -- Spring Demo Source
Implementing HttpSession in the Spring MVC
Jasper Reports getting resubmitted to a servlet
Cannot get new screen to work properly; similar screen was recently added successfully
Opening a PDF file from JSP Page using Java Script