aspose file tools*
The moose likes Other Open Source Projects and the fly likes Display Contents of File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Display Contents of File" Watch "Display Contents of File" New topic
Author

Display Contents of File

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1391
In one of my database fields I have a path to a RichTextFile. How can I display the contents of this file in a field on my JasperReport?
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1391
I really need some help with this.
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1391
Is anyone familiar with this issue?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9343
    
111

I'll move this to our Other Open Source Projects forum, where Jasper reports related questions are discussed. Maybe someone there will be able to provide an answer.


[My Blog] [JavaRanch Journal]
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1391
Thanks for moving this to the proper queue. I hope someone here can help.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
This is a shot in the dark, but can JasperReport render Swing components? If so, you could use a javax.swing.JEditorPane in conjunction with javax.swing.text.rtf.RTFEditorKit.


Ping & DNS - updated with new look and Ping home screen widget
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1391
It was my hope someone here would know alot more about JasperReports than I. Can anyone shed light on the use of Swing objects in a JasperReport?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18152
    
    8

Apparently there aren't a whole lot of Jasper experts looking at the more obscure forums here. I see via Google that there are Jasper forums, have you considered asking your question there?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
Please keep in mind that my suggestion of rendering a Swing component was complete conjecture. Jasper may not be able to do that, nor actually be able to render RTF any which way, for all I know. Plus, I just noticed that integration of RTF content is a requested feature (although I suppose it's possible that the requester just hasn't figured out how to do it).
[ February 04, 2008: Message edited by: Ulf Dittmer ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display Contents of File
 
Similar Threads
How to Display Contents of a File in an iReport
Servlet reading a JSP file
a small GUI question
Reading HTML using JAVA
display contents of a text file in a new window