dcsimg
Printing text files in java
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   freak_freako
Posted On:   Thursday, June 6, 2002 07:43 PM

I need to print txt files, or rtf format files from my java application, so far from research i havent found a simple way to do it, and it shouldnt be hard, they are just text files??? any help is greatly appreciated??

Re: Printing text files in java

Posted By:   Anonymous  
Posted On:   Thursday, June 6, 2002 10:43 PM

This approach would be appropriate:

Take a Panel(that represents the physical page in all aspects) that implements the Printable interface and draw the text(contents) contained in the file, on the Panel.

Now this Panel can be printed as it is using Java Print API.
About | Sitemap | Contact