In this video series you will learn about different methods for generating PDFs and printing with Power Apps. The following 5 videos are included in this series:
Power Apps PDF generator - https://www.youtube.com/watch?v=2rfAQe1kK8M
Dynamic PDF generator - https://www.youtube.com/watch?v=bfXV_GXc_JM
Convert Images for PDFs & Components - https://www.youtube.com/watch?v=bIne3DD3HAg&t=2s
Power Apps Print API - https://www.youtube.com/watch?v=m4Fu9af2h1c&t=205s
Print with Power Apps - https://www.youtube.com/watch?v=JMhVtII5hQs&t=3s
Printing in Power Apps: Power Apps PDF generator Do you need to make invoices or keep record of something in Power Apps? Learn how to do this and more by using the Microsoft Flow PDF Converter to create a PDF generator in Power Apps. In Shane’s Power Apps PDF Generator using Microsoft Flow PDF Converter video, he demonstrates how to make HTML, utilize Flow and OneDrive, and finally send information from Power Apps directly to a PDF. The goal with this video is to automate data collection in order to get rid of paper, store the data in an accessible location, and subsequently present that data in an efficient way.
2:04 Demo of the solution
3:08 Write the HTML, add it to Flow, and utilize the Concat function
9:21 Convert the file format and utilize the DataUri expression
14:35 Edit the flow and convert the HTML file to a PDF
17:33 Add the flow to Power Apps
23:32 Generate a PDF from Power Apps
Dynamic PDF generator This video takes the PDF generator a few steps further and will teach you how to build a more complex PDF with dynamic data and an HTML table. Shane's Power Apps PDF from table data video builds upon the concepts shown in his Power Apps PDF Generator using Microsoft Flow PDF Converter video above. By filtering a data source, multiple rows and columns will be returned that can then be saved as a PDF from Flow.
1:37 Demo of the solution
4:10 Overview of the solution
9:50 Overview of the Flow
11:37 Utilize the Concat function
15:13 Create an HTML table
20:38 Format the HTML table
25:24 Generate a PDF from Power Apps
Convert Images for PDFs & Components
Image files can be tricky to work with throughout your Power Apps. One way to navigate this is to convert image files and use them in their encoded form. In Shane’s Power Apps Convert Image to Base64 for Emails, PDFs and Components video, he demonstrates how to convert an image to base64 for emails, pdfs, and components.
1:47 Insert an image and resize it using the Snagit Editor
4:24 Convert the image to Base64
5:45 Add the Base64 to the image control
6:47 Send the image in an email
10:02 Overview of including the image in a PDF
12:06 Update the image in the component library
Power Apps Print API
One approach to printing labels, barcodes, forms, and more directly from Power Apps is to utilize a 3rd party API called PrintNode. PrintNode allows users to connect their printer, generate an API key, and then use that API key over in Flow. In Shane’s Power Apps Print directly to a printer with an API – PDFs, Labels, Barcodes, and more with Flow video, he demonstrates how setup PrintNode and build a Flow in order to print directly from Power Apps. Something to keep in mind here is that the Flow is premium, and Shane will further discuss licensing later in the video.
2:15 Demo of the solution
5:44 Overview of the Flow
8:12 Overview of PrintNode
10:42 Build the flow
19:38 Overview of licensing
Print with Power Apps The new Print() functionality in Power Apps allows you to save a screen as a PDF or print it directly to a printer. Printing can be done by simply inserting an icon and adding the Print function. In Shane’s Power Apps Print function and adding it to your forms and apps video, he demonstrates how to add the Print function to an existing form and app.
Also covered in this video are some of the nuances of the functionality. For example, Shane compares the Print function to taking a screenshot. If you are trying to print screen that includes a gallery or a form, only what is displayed on the screen will be printed rather than the entire gallery or form. In addition, the Print function is does not currently work on a mobile device.
1:23 Demo of the solution
3:12 Print an existing app with the Print function
5:00 Nuances of the Print function
5:26 Hide the print icon from the screen when printing it in the Visible property
8:45 Print a single record to look like data
12:12 Send the user back to where they came from after printing in the OnSelect property
14:44 Remove the screen fill from the screen when printing in the Fill property