IntelliJ Java IDE
The moose likes Swing / AWT / SWT / JFace and the fly likes Printing html from an applet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "Printing html from an applet" Watch "Printing html from an applet" New topic
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
 
IntelliJ Java IDE
 
subject: Printing html from an applet
 
Threads others viewed
Restricted Printing from Applet
Printing html from an applet
Odd printing prob in diff IE versions
Signed applet and printing
Using applet to print
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com