This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
wood burning stoves
 
subject: Rendering HTML to printer using java
 
Similar Threads
Print simple jpeg image using java
Need to get IP Address
Printing HTML With Java
Printing HTML file through Printer in core java.
Printing Data