aspose file tools*
The moose likes JSF and the fly likes How to print a HTML file in core java?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "How to print a HTML file in core java??" Watch "How to print a HTML file in core java??" New topic
Author

How to print a HTML file in core java??

Rupali Das
Greenhorn

Joined: Dec 08, 2008
Posts: 6
Can any one tell me...How to print HTML file in core java.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Rupali Das wrote:Can any one tell me...How to print HTML file in core java.


What do you mean by "print file in core java",
If you want to simply read a HTML file or any file and print it on console, Java has, FileInputStream class.

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Kumaresh Vidhyasagar
Ranch Hand

Joined: Dec 05, 2008
Posts: 30
Why are you posting problems related to Core Java in JSF? Please use the proper forum topics.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
You need to be more specific.

As you´re posting this at the JSF forum, I assume the following:

You have a JSF page opened in a web browser. You want to add a "Print" button or link to it and you want that it should open a print dialog.

Is this true? If so, simply use Javascript´s window.print() function in the onclick event. If not, you need to elaborate more about the problem.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to print a HTML file in core java??