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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to print a HTML file in core java??
 
Similar Threads
How to print
How ca I print a html file using Java
Printing HTML file through Printer in core java.
Printing HTML page using Java Print Service API by converting to Postscript
How to Print Document without opening document?