• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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
 
this llama doesn't want your drama, he just wants this tiny ad for his mama
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic