• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

How to print a RTF document using java?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to print a RTF document using java for a batch job which is to be run on an AIX server. This document contains merge fields from a template and a linked image as the header.
I have tried two approaches and hit roadblocks on both -
1. The Java™ Print Service API
The printer treats the file to be printed as a text document and prints the ASCII values instead of formatted RTF
2. Swing (JEditorPane/RTFEditorKit)
This does not let me print grahics or merge fields although it does print the formatted RTF text correctly
Any help on getting getting past these issues is greatly appreciated. Also please let me know if you can think of any other way to print. The project is not keen on buying a third party API so I cannot go that route.

Thanks for your time
 
Can you really tell me that we aren't dealing with suspicious baked goods? And then there is this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic