You need to sign in to do that
Don't have an account?
Gautier Swiercz 7
Hide Button on visual force page Printable view
Hi,
I have two buttons on my VisualForce Page, "Save" and "Print".
When i click on "Print", standard navigation printable view is called. Now I just want to hide my buttons when I want to print my document.
Anyone can help me ?
Thanks in advance.
GS
I have two buttons on my VisualForce Page, "Save" and "Print".
When i click on "Print", standard navigation printable view is called. Now I just want to hide my buttons when I want to print my document.
Anyone can help me ?
Thanks in advance.
GS
You can use below code in your vf page.
And you can take the help from the below blog. It is a very useful blog.
http://www.infallibletechie.com/2013/08/how-to-print-visualforce-page-in.html
Thanks,
Arvind Kumar
All Answers
You can use below code in your vf page.
And you can take the help from the below blog. It is a very useful blog.
http://www.infallibletechie.com/2013/08/how-to-print-visualforce-page-in.html
Thanks,
Arvind Kumar
Thanks for help,
The commandLink is good, but when i click on "Print", the Print link still appear on my printable view, as you can see :
In your stylesheet add:
@media print { .no-print, .no-print * { display: none !important; } }
Then add class='no-print' on you button.
Hope this will work.