| Author |
Printing html from an applet
|
Jeff Wisard
Ranch Hand
Joined: Jan 07, 2002
Posts: 89
|
|
Hello all, I have an applet that displays JTables with data within them. I would like to be able to print the data in a nice looking formatted way (essentially make a printable report of the data displayed). One idea I have is to make a call to the web server and have it generate an html version of the data (it has access to the data also) and return that to the applet as a string. I then would like to print the HTML version as it should look via a browser...without actually displaying it. My guess is that this is easier than printing the table itself (including header graphics and descriptions, etc.). However, I have never used the printing API and don't know where to get started. Can someone help me out with this? Code examples would be greatly appreciated. (BTW: The applet is signed, so there are no problems accessing printers or other system resources) Thanks! [ January 28, 2002: Message edited by: Jeff Wisard ]
|
Jeff Wisard<br />Sun Certified Java Programmer (Java 2)<br />Sun Certified Web Component Developer
|
 |
kumar ray
Greenhorn
Joined: Jan 23, 2002
Posts: 4
|
|
You can check Topic: problem with JTable printing (urgent) for printing API Example.
|
pk
|
 |
 |
|
|
subject: Printing html from an applet
|
|
|