• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to hide the Print button in printed document ?

 
RamaKrishna Thota
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
RamaKrishna Thota
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your Quick Reply
 
RamaKrishna Thota
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18154
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic