Will Cooper
Will Cooper
January 24, 2025
Stay in the know
Get helpful videos

Printing SharePoint list data is highly useful. After all, just about everything in SharePoint is in lists! It makes sense that we want to be able to output PDF reports from SharePoint lists. Out-of-the-box SharePoint has no print functionality whatsoever. Luckily, Infowise Ultimate Forms has awesome print template capabilities. Whether you are creating a print template for a single form using the amazing Word document template system or printing from list views, it is easy to set up using Ultimate Forms.

List view print templates are easy to set up and quite reliable. If you just need a standard report and don't need to fine tune the appearance of your output, then default styles for list print templates are great. The thing is, you might find this to be too plain vanilla. What if you want to style the header row? What if you like the idea of having alternating row background colors? What if you want to fine tune the colors and padding?

All of this is possible with the magic of a simple CSS code snippet provided below. You don't really even have to know anything about css. It's simple.

Walk through these steps to create your first styled list print template:

Begin by creating a list view print template following regular steps. Be sure to select the List in the Type option then pick your fields:

 

Copy this code snippet below:

 

.iw-formtbl thead td {

}

.iw-formtbl tbody tr:nth-child(odd) td {

}

.iw-formtbl tbody tr:nth-child(even) td {

}

Paste this to the CSS section in the Display tab as shown:

Now comes the fun part. The print output is all one HTML table. The first CSS entry in the code snippet controls the styles for the header row. The second CSS entry controls the styles for odd row numbers. The third CSS entry controls the styles for even row numbers.

These are the main CSS attributes you should use to adjust the styling:

  • color
  • background-color
  • font-size
  • font-family
  • border-color
  • padding

Insert your own settings, save then test your output. It's that easy!

Here are two code examples to get you started:

Code Example 1:

.iw-formtbl thead td {
color: white;
background-color:  dimgray;
font-size: 16px;
}

.iw-formtbl tbody tr:nth-child(odd) td {
color: black;
background-color: floralwhite;
font-size: 10px;
}

.iw-formtbl tbody tr:nth-child(even) td {
color: black;
background-color: aliceblue;
font-size: 10px;
}

Output 1:

Code Example 2:

.iw-formtbl thead td {
color: white;
background-color:  navy;
font-size: 18px;
font-family: courier;
}

.iw-formtbl tbody tr:nth-child(odd) td {
color: black;
background-color: azure;
font-size: 12px;
font-family: courier;
}

.iw-formtbl tbody tr:nth-child(even) td {
color: black;
background-color: ghostwhite;
font-size: 12px;
font-family: courier;
}

Output 2:

Loading...

Add your comment

Comments are not meant for support. If you experiencing an issue, please open a support request.
General
Will Cooper | March 13, 2025
SharePoint Forms are the main interface for entering data intro SharePoint lists and document libraries. They provide a gateway for introducing new collaborative data and also a way to augment existing information. But as we all understand, any information system, SharePoint included, is just as good as the data it contains. Erroneous, outdated...
General
Relationships between two or more SharePoint lists has always been a major core concept in Ultimate Forms. Using our special Associated Items column, it's easy to set up such relationships. The child items show up inside the parent item form. You can work with them within the parent, adding new ones, modifying and deleting existing ones. One of...
General
Vladi Gubler | March 05, 2025
Need to send data from your SharePoint form directly to your email? This article will guide you through setting up a SharePoint form to email. The form sends collected information straight to your inbox. You’ll learn ways to create the form, configure email notifications, and customize email content. Understanding SharePoint...
Build powerful business applications in SharePoint using only your browser.
100% No-Code Solution
It’s never been easier to create, innovate, and share. All you need is your web browser!
Cost-Effective
Address business process pain points immediately. Save time and money.
Fantastic Support Team
In addition to our responsive support team, a wide variety of resources, documentations, tutorials, blogs and webinars is available to you
Microsoft partner logo
© 2005-2025 Infowise Solutions Ltd. All rights reserved.
Privacy | Cookie Policy | Accessibility | Cloud SLA