This sample shows how you can print list items using different templates, site admin can add, edit or remove templates and users can print items based on those templates.
Solution | Author(s) |
---|---|
react-command-print | Ramin Ahmadi |
Version | Date | Comments |
---|---|---|
1.0 | Dec 05, 2018 | Initial release |
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
- Clone this repository
- in the command line run:
npm install
- update serve.json pointing to your site collection home page
gulp serve
This sample illustrates the following concepts on top of the SharePoint Framework:
- Add/Update/Remove print templates
- Customizable header and footer
- Ignore blank columns
- Grouping columns by adding sections
Next version features:
- Send the template to emails.
- Convert to PDF.
- Print multiple items.
Here's a debug URL for testing around this sample. Updated based on your manifest id for easy testing of the sample.
?loadSPFX=true&debugManifestsFile=https://localhost:4321/temp/manifests.js&customActions={"83a96197-2c0f-4966-8532-de37b0624ef0":{"location":"ClientSideExtension.ApplicationCustomizer","properties":{"testMessage":"Hello as property!"}}}
Notice that better pictures and documentation will increase the sample usage and the value you are providing for others. Thanks for your submissions advance.