File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Printing a web page from Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Printing a web page from Applet" Watch "Printing a web page from Applet" New topic
Author

Printing a web page from Applet

Victoria Bernstein
Greenhorn

Joined: Dec 07, 2000
Posts: 15
Hi All,
Is there any way to print the contents of the browser window from within an applet?
Thanks a lot,
Victoria
maateen ashraf
Ranch Hand

Joined: Jan 08, 2001
Posts: 122
make a URL object & get contents of the html page from that url
show the contents using inputstream on the textarea of applet
feel free to ask if u r still not out of problem...
Victoria Bernstein
Greenhorn

Joined: Dec 07, 2000
Posts: 15
Thanks maateen,
I understand how to do it.
Another question: are there any commercial or freeware ready-to-use applets that accomodate printing?
Thanks
baba
Greenhorn

Joined: Feb 18, 2001
Posts: 8
well maateen...
i dont get a single word u said...pleaz feel free to elaborate it in lay language... i mean simplest as possible...try placing an example which can say print a file "C:\test.txt" from a print button in an applet
thanx in advance
 
 
subject: Printing a web page from Applet
 
Threads others viewed
Applet Accessing the EJB
DialogBox is gone after setModal
Communication between two applets
Drag and dropping across applets
Clock
IntelliJ Java IDE