• Post Reply Bookmark Topic Watch Topic
  • New Topic

parsing .rtf file to a string  RSS feed

 
Aaron McKrevice
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Short version: I need to read an rtf file, Put the contents into a String and display as (nicely) formatted text just as in the rtf file.

Long Version: I'm using Jasper Reports and IReport. In a report I need to display rtf formatted text from documents created by users. I'm able to read the file (duh) but I'm unable to display the formatted text.

I can display plain/unformatted text with this code:


How can I display the text with bolds, italics, font changes etc?

Thanks
 
Norm Radder
Rancher
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's something I copied from: Source: http://www.cs.cf.ac.uk/Dave/HCI/HCI_Handout_CALLER/node123.html

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!