aspose file tools*
The moose likes Java in General and the fly likes Rendering HTML to printer using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Rendering HTML to printer using java" Watch "Rendering HTML to printer using java" New topic
Author

Rendering HTML to printer using java

mini mehta
Ranch Hand

Joined: Oct 22, 2000
Posts: 120
Hi
Does any body know how to render html file to printer using java? Can you please help.
Regards
Mini
raj madhuram
Ranch Hand

Joined: Oct 10, 2001
Posts: 71
Two ways I could think of:
1. Use JEditorPane to render HTML (http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JEditorPane.html) and print it (http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-Printing.html)
2. Another cheap way, open HTML with IE (use java-com bridge such as http://danadler.com/jacob/, you can even make it invisible I think ) and issue print commands to IE
regards,
Raj
 
 
subject: Rendering HTML to printer using java