Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RTF/txt file printing.

809220Sep 26 2011 — edited Sep 28 2011
Heya!

It's been doing my head in trying to figure out how to print JasperReport labels on my Dymo LabelWriter. What i used to do is to export the report to PDF and print it. Issue i had with that is that it ignores font type/family completely. What i noticed is that RTF and txt-files keep the font.

That threw me out on a journey to figure out how to print those. I've been through countless posts on the web, examples, forum posts, etc. All of them show some weird, useless to me scenarios that i couldn't even modify for my own use.

What I'm really looking for is this:

- A way to print .docx, .doc, .rtf or .txt file (physical file on a harddrive) to printer through Java code.

Is it possible? Perhaps some free libs i didnt notice yet?

Thanks in advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 26 2011
Added on Sep 26 2011
10 comments
1,136 views