wood burning stoves 2.0*
The moose likes JSF and the fly likes How to hide the Print button in printed document  ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "How to hide the Print button in printed document  ?" Watch "How to hide the Print button in printed document  ?" New topic
Author

How to hide the Print button in printed document ?

RamaKrishna Thota
Greenhorn

Joined: May 17, 2011
Posts: 12
Dear All

I am printing one JSF page for client request, but i am getting the PRINT button text also in my printed page.

But i want to hide the PRINT button in printed document.Please help me

Thanks in advance...

For printing the page in my JSF page using below code..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41108
    
  45
Why is the Print button there in the first place? I'd think most users would know to use Control P or the Print menu.


Ping & DNS - my free Android networking tools app
RamaKrishna Thota
Greenhorn

Joined: May 17, 2011
Posts: 12
Thank you for your Quick Reply
RamaKrishna Thota
Greenhorn

Joined: May 17, 2011
Posts: 12
But my requirement is, i should be able to hide the PRINT button in my printed document,if any possibilities please help me...
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15957
    
  19



The "noprint" style class can be used to hide the print button - and anything else you want. I use this for things like hiding sidebar menus when a page prints, too.

I'm afraid I don't expect users to know anything (based on past experience) . So I have "print" buttons on my printable pages as well.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to hide the Print button in printed document ?
 
Similar Threads
printing from an applet toolbar the image displayed in the applet via a thread
Is any way We can tell JSF to not response
printing
disabling IE security pop up window
Print invoice - JSP