Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

Printing rtf documents in java

Thread view: 
Thorsten23 - 06 May 2007 15:16 GMT
Hello,

I have lots of rtf documents that were created using wordpad. Now I have to
printout these documents out of a java application. Does anyone know how
this might work or in which direction to search?

Thanks for any help!

Thorsten
Stefan Ram - 06 May 2007 22:27 GMT
>I have lots of rtf documents that were created using wordpad. Now I have to
>printout these documents out of a java application. Does anyone know how
>this might work or in which direction to search?

 I do not know anything about printing with Java.

 I only can give some hints regarding reading, writing
 and RTF in general.

 My semantic net knows three programs that can read RTF.

http://purl.net/stefan_ram/garnoo/XOCATALOGUEXOYTREEGXOPROGRAMMINGXOLANGUAGEX
SYRYTYFXOREADER

 As one can see there, this includes at least two that are
 available as Java libraries.

 An RTF documents is written with Java as follows.

new java,io.FileWriter( "example.rtf" ).
append( "{\\rtf\\ansi Hi!\\par}" ).close();

 General information about RTF:

http://msdn2.microsoft.com/en-us/library/aa140277(office.10,d=printer).aspx
http://msdn2.microsoft.com/en-us/library/aa140297(office.10,d=printer).aspx
http://latex2rtf.sourceforge.net/rtfspec_45.html
Andrew Thompson - 07 May 2007 04:38 GMT
>>I have lots of rtf documents that were created using wordpad.
...
>  My semantic net knows three programs that can read RTF.
>
>http://purl.net/stefan_ram/garnoo/XOCATALOGUEXOYTREEGXOPROGRAMMINGXOLANGUAGEX
>SYRYTYFXOREADER

Your semantic net does not know JEditorPane?

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Stefan Ram - 07 May 2007 05:02 GMT
>>http://purl.net/stefan_ram/garnoo/XOCATALOGUEXOYTREEGXOPROGRAMMINGXOLANGUAGEXSYR
YTYFXOREADER

>Your semantic net does not know JEditorPane?

 Yes, it seems I have missed the most obvious.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.