This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Print functionality in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Print functionality in JSF" Watch "Print functionality in JSF" New topic
Author

Print functionality in JSF

Bahadur Shah
Greenhorn

Joined: Feb 20, 2007
Posts: 18
I've a JSF page where I'm displaying a chart as an image.

I've a print button on my page.
When I click on print button, It should print the image in the page.

Can anybody please suggest me how to achieve this?
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Whether a printer prints images from a website depends on the browser's (and in rare cases also the printer's) configuration. Usually they will by default just be printed.

Here I assume that you don't have a CSS media rule specified which for instance hides images from the print media.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Print functionality in JSF
 
Similar Threads
printing current webpage...!
CommandButton with Image and Label
How to print a document?
How to hide the Print button in printed document ?
Chooser