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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Correct HMTL for Table...
Power Apps
Unanswered

Correct HMTL for Table with Header Row - PDF Output

(0) ShareShare
ReportReport
Posted on by

Hi,

I have a Flow integrated into my App that outputs html to a PDF, the problem is that the borders for the table header do not display correctly. This is my html code: 

<table width='100%' border='1' cellpadding='5' style='border: 1px solid black; border-collapse:collapse'>"&
"<tr style='background-color: #efefef'>
<th>Quantity</th>
<th>Description</th>
<th>Price Each</th>
<th>Total Price</th>
<th>Software</th>
</tr>
<tr> "& Concat(GalleryItemsDetails.AllItems,
"<td>" & DetailsItemQtyValue.Text & "</td>
<td>" & DetailsItemDetails.Text & "</td>
<td>" & DetailsItemCost.Text & "</td>
<td>" & DetailsLineValue.Text & "</td>
<td>" & DetailSoftwareDetails & "</td>","</td><tr>") &
"</table>

and this is what the output looks like:

 

mikiepat_0-1594749850964.png

 

can anyone tell me what i'm doing wrong?

 

thanks

 

Mike

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    Try taking the extra </td> out and also consider using the ForAll instead of Concat for your formula, like this:

    "<table width='100%' border='1' cellpadding='5' style='border: 1px solid black; border-collapse:collapse'> 
     <tr style='background-color: #efefef'>
     <th>Quantity</th>
     <th>Description</th>
     <th>Price Each</th>
     <th>Total Price</th>
     <th>Software</th>
     </tr>" & 
     ForAll(GalleryItemsDetails.AllItems,
     "<tr>
     <td>" & DetailsItemQtyValue.Text & "</td>
     <td>" & DetailsItemDetails.Text & "</td>
     <td>" & DetailsItemCost.Text & "</td>
     <td>" & DetailsLineValue.Text & "</td>
     <td>" & DetailSoftwareDetails.Text & "</td>
     </tr>") &
    "</table>"

     Also noticed that you referenced DetailsSoftwareDetails in your original formula.  I am assuming that is a text control also and needed the .Text

     

    I hope this is helpful for you.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard