:focal())
Pieter Bollen, Modern Workplace Consultant at Xylos, shows how to print a label or document from SharePoint without storing it anywhere. You don't need a library, a Power Automate flow or a premium connector.
For a customer, he extended a default SharePoint form with his own controls in Power Apps, which show the same data in a cleaner layout. A clever trick at print time makes the result usable. The solution fits specific situations, such as packaging labels you only print once.
Below, Pieter explains how to do it yourself.
How do you customise a SharePoint form without a premium connector?
A customer wanted to print packaging labels without storing them. In the old SharePoint on-premises environment, a Nintex workflow generated the label as a PDF and stored it. The user opened the PDF and printed it.
There were two types of labels: an informal label for internal transport and a more formal, official label for external transport.
When we migrated to SharePoint Online, the first idea was this:
a library for the PDF documents
a Power Automate solution with a premium connector to generate the PDF files
Something bothered me about that. A library, a flow and a paid connector, just to store documents you only print once? I started testing and found an alternative: a default SharePoint form that I extended with my own controls. They show the same data as the default data cards, in a nicer layout.
Start from a default SharePoint form
Everything I explain is basic and quick to implement. It's the small trick at the end that makes it all usable.
I start from the default form of a SharePoint list, without any extra requirements. Such a form shows your fields in the typical, somewhat boring data cards.

The only way to print it is with the Ctrl+P shortcut. Keep three things in mind:
As far as I know, a default SharePoint form has no print command. A canvas app does: there you can use the 'hide on print' property for a control.
Ctrl+P is a default Windows shortcut, not a command from SharePoint or Power Apps.
Sometimes the print preview looks blank, other times you do see all the controls. That's no coincidence: it depends on the position of your cursor. With nothing selected, the preview is blank. Select a bit of text and suddenly your form does appear in the print preview.
Spoiler: remember this, because this is where the trick lies.
If you don't get a blank page, your print looks like this:

These parts don't belong on your label:
the waffle icon in the top left corner
the Power Apps and solution title, plus the user icon
the grey vertical line and the white zone with the device and size icons
Customising the form
First I adjust how the form looks and how you fill it in. The previous screenshot was a random example. What follows is the adjusted form for the customer's request: a simple label to send lab samples internally. It had to show the safety classes used and the number of products.

In this default form, I made the following changes:
At the top there's a container with a title, a print icon and the company logo (hidden in the screenshot).
The data cards are rearranged so the text sits next to the label instead of below it. That makes filling it in more pleasant. It's not the printable end result yet.
The data cards for the safety classes only show when that class is selected in the dropdown. The old label always showed all safety classes. That was confusing and made the labels unnecessarily long and hard to read.
Note: if you print this form now, you get the same result as with the default form. So far we only changed the look and the logic.
Building the printable label
Now comes the customisation for the printable label. Just below the title container, I added a new default container with new controls that refer to the data cards. The result looks like this (customer details are hidden):

general label text and instructions
formatting that is suited for printing
the safety class info as a table-like layout with logos, so you can read the content at a glance
With some Power Apps experience, you can add any logic you need here.
The trick to print
The form has a print icon and a company logo. You can also use any other control that may stay on the print. The first version only had a company logo, which acted as a toggle between viewing and printing. The print icon was added later for a smoother user experience.
You can't hide the print icon on the print automatically, since you're not working with a canvas app and there's no print action. That's why I let the print icon call the OnSelect of the logo, where the actual code sits. The print icon then disappears. In print mode, the user clicks the logo to return to the normal view, and the print icon shows again.
Set(ShowOnPrint, !ShowOnPrint);
With the variable !ShowOnPrint (! means "not") you hide the default data cards. With ShowOnPrint you show the container with the printable content.
When you press Ctrl+P now, the unwanted parts (waffle icon, title, profile picture...) are still there.
The trick to print: first select something you can click on, like a label or a piece of text. Then press Ctrl+P. You get a clean A4 print without the unwanted parts. With only the default data cards, the same action gave a blank page.
In short:
Put all the controls you want to print in a single container.
That way you only need to show or hide that container.
Hide or show the other parts of the form.
Click once or select some text anywhere, and then press Ctrl+P.
A default form can't make that selection for the user automatically.
The second label
The second label, for samples sent to external customers, uses the same technique. Here the result had to be an official A4 document that you can sign. This document didn't need to be stored either.
A bit of extra logic: when you select SDS, the form shows the text "Print document twice". That text doesn't appear on the print itself.
It took a few attempts to get the container exactly A4 size. This is the result:

Left the view, right the print.
On the left you see the adjusted default data cards for filling in the data. On the right, the printable container shows controls linked to the data cards. Here too, you can add logic as you see fit.
When does this solution fit (and when not)?
Pros
No library, so no storage
No Power Automate flows
No paid connector
You can print without saving the item
Want to store the document after all? Print it to PDF with the default Windows PDF printer
Any layout is possible, although getting the right size takes some testing
Advanced logic in the result is possible
Cons
You need to explain to your users how to click and print.
Because you work with a SharePoint list form, you have to move the form yourself from a dev or test environment to production.
There's no out-of-the-box action to select text in a control, so the user has to do it before printing.