web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create a PDF with tabl...
Power Apps
Unanswered

Create a PDF with table populated from a Gallery

(0) ShareShare
ReportReport
Posted on by 4

Hello, 

 

currently I'm trying to "print" a PDF document by pressing a button in my PowerApp which triggers a flow, that creates the document.

 

It seems to work, but since I tried to insert data from my gallery as a table in my html I doesn't work.  In the power app the elements can be seen (marked in yellow), but the flow won't consider the data and the print looks like this. (see second picture)

 

The HTML code for the PDF looks like this:

 

 

"<!DOCTYPE html>
<html>
<body>

<h2>Matchmaker Task Report - " & User().FullName & "</h2>
<hr>

<p>Average rating: "&Round(Sum(Gallery2.AllItems,Rating_Stars)/Count(Gallery2.AllItems.Rating_Stars),1) &"</p>
<p>Average % of fulfillment: " & Round(Sum(Gallery2.AllItems,Rating_PercentComplete)/Count(Gallery2.AllItems.Rating_PercentComplete),1) & " %</p>

<hr>

<h2>Completed Tasks</h2>
<hr>
<p>"& Concat(Gallery2.AllItems,
 "<tr>
 <td> <h3>" & Title & " </h3> </td>
 <td> <h4> Description: </h4>" & 'Task Description' & " </td>
 <br>
 <td> Estimated Effort: " & 'Estimated Effort' & " </td>
 <hr>
 </tr>") &"
 
 </p>

<br>
<br>
<br>
<br>

<img src=" & VarFullFace &" style='width:200px;height:'200px'>
<br>
Date of Report: " & Now() &"
</body>
</html>

"

 

 

Image 1: PowerApps HTML with table

itriada98_0-1657622322801.png

Image 2: Final PDF without Table

Matchmaker_Problem2.PNG

 

Categories:
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @itriada98,

    Try wrapping the table in <table> / </table> tags.

     

    If that doesn't work, can you please post a the full HTML code for the example you have given?

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard