Page 1 of 1

Hide elements on print form

Posted: 03 May 2017
by vegard.grutle
Hi,

I have a list where i have enabeled the Print Form functionality.

Is there a clever way to hide elements on the printed PDF such as the indicated elements in the picture?
HideElements.PNG
HideElements.PNG (40.1 KiB) Viewed 2514 times
Thanks in anticipation

Re: Hide elements on print form

Posted: 04 May 2017
by Dmitry Kozlov
Hi,
Those elements are inserted by your browser or PDF printer. Say, in Chrome, you can remove them by turning off the 'Headers and footers' option:
HideHeaderAndFooter.png
HideHeaderAndFooter.png (8.09 KiB) Viewed 2503 times

Re: Hide elements on print form

Posted: 08 May 2017
by vegard.grutle
Thanks Dmitry!

This works well for the header and footer. I still have the gear icon displaying on my printed form.

Any recommendations?

Vegard

Re: Hide elements on print form

Posted: 09 May 2017
by Dmitry Kozlov
Hi,

I cannot see the gear icon on a printed form in my environment. Most likely, your SharePoint site has been modified. You can hide any element from a printed page with CSS. Assign a CSS class, say, 'no-print' to an element you want to hide from a printed page and define it following way in the CSS-editor:

Code: Select all

@media print
{    
    .no-print, .no-print *
    {
        display: none !important;
    }
}

Re: Hide elements on print form

Posted: 22 May 2017
by vegard.grutle
Thanks! Much appriciated :D