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 / How to edit HTML in an...
Power Apps
Unanswered

How to edit HTML in an HTML text label

(0) ShareShare
ReportReport
Posted on by 73

The PA I'm building creates a pdf from an html structure. I'm struggling with styling because the html label doesn't seem to accept styling, only tags such as 

<strong></strong>

I've tried things like 

<table style' etc...'>

But none of it seems to be read by powerapps and it completely ignores it.

My objective is to get the below code to span the page, instead of being shoved into the left corner and also put borders around the table at the bottom. The only styling I've managed is to use color and font weight. Is adding a table border too much and how would I increase a tables width?

<body>
<h1 ><font color=blue>" & DetailsTitle & "</font></h1>
<table >
	<tbody>
		<tr>
			<td><strong>Title1</strong></td>
			<td><strong>Title2</strong></td>
		</tr>
 
		<tr>
			<td>" & var1 &"</td>
			<td>" & var2 &"</td>
		</tr>
 <tr><td><td/></tr>
		<tr>
			<td><strong>Title 3:</strong></td>
			<td><strong>Title 4:</strong></td>
		</tr>
		<tr>
			<td>" & var3 & "</td>
			<td>" & var4 & "</td>
		</tr>
 <tr><td><td/></tr>
		<tr>
			<td><strong>Title 5:</strong></td>
			<td><strong>Title 6:</strong></td>
		</tr>
		<tr>
			<td>" & var5 & "</td>
			<td>" & var6 & "</td>
		</tr>
 <tr><td><td/></tr>
		<tr>
			<td><strong>Title 7:</strong></td>
			<td><strong>Title 8:</strong></td>
		</tr>
		<tr>
			<td>" & var7 & "</td>
			<td>" & var8 & "</td>
		</tr>
 <tr><td><td/></tr>
		<tr>
			<td><strong>Title 9:</strong></td>
	
		</tr>
		<tr>
			<td>" & var9 &"</td>
			
		</tr>
	</tbody>
</table>
<p><strong>Title 10:</strong>&nbsp;</p>
<p>" & var10 & "</p>
<p><strong>Title 11:</strong>&nbsp;</p>
<table border='1'>
<tr>
<th><strong>Item</strong></th><th><strong>Cost</strong></th><th><strong>Cost Frequency</strong></th>
</tr>
<tbody>
" & Concat(Collection, "
<tr>
<td> " & Item & "</td>
<td> " & Cost & "</td>
<td> " & CostFrequency & "</td>
</tr> " )&"
</tbody>
</table>
</body>
</html>
"

 

Categories:
I have the same question (0)
  • Verified answer
    Moreshwar Profile Picture
    135 on at

    Hello Cardinaluk - You may want to consider generating pdf using flow instead of PA, it is easier and faster. I had taken a similar approach for one of my PowerApp based app.

  • cardinaluk Profile Picture
    73 on at

    @Moreshwar How would you setup the structure of the pdf though? I have to use HTML to get the structure in the first place.

  • cardinaluk Profile Picture
    73 on at

    I've just discovered that PowerApps will not show styling within the app but the Flow will show styling. So thanks.

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard