Forum Discussion
VeeExcelLearn
Aug 09, 2022Brass Contributor
What is the best way to print out a SharePoint List
How do I make it easy for someone to print a SharePoint list that is filtered and make it come out clean and formatted? The people who would be printing this are Presidents so I dont want them to fumble through exporting to Excel as they are not familiar with this environment especially when it comes to printing. I know it will come out out of page range.
- kalpeshvaghelaSteel Contributor
There is no OOTB way to do so, you can add your custom button in List View using SPFX Extension - List View Command set and you can implement your own logic for print.
Below is the similar thread which is doing print for single item with template so you can extend it according to your requirement to support printing of all the list items.
https://github.com/pnp/sp-dev-fx-extensions/tree/main/samples/react-command-print
Hope it will helpful to you
- VeeExcelLearnBrass Contributorkalpeshvaghela looks like something that would work but the question is is this for an individual item or the entire list. In my case I want the entire list to be printed not an item. Is this just JSON code and if so where do I put it. Please be patient as I am starting my learning journey thank you.
- kalpeshvaghelaSteel Contributor
As mentioned in previous reply, sample which I shared is only for single item, you need to adapt it for entire list.
and it's not the JSON code but it's SharePoint Framework Application Customizer - List View Command set which is using React as Framework so if you are starting your journey then first you need to grab some knowledge about SharePoint Framework
Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/sharepoint-framework-overview
Hope it will help to you.