RTF/txt file printing.
809220Sep 26 2011 — edited Sep 28 2011Heya!
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!