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 / New PDF function, trou...
Power Apps
Answered

New PDF function, trouble with colspan

(0) ShareShare
ReportReport
Posted on by 725

Hi everyone

Im very rusty on my html

This looks good in Powerapps but when I send an email the PDF renders with either with colspan not working or the non colspan cells on the right being pushed out.

"<body>
<h1>colspan problem</h1>
<table style='width: 100%; border-collapse: collapse; border-style: none;' border='1'>
<tr>
<th style='width: 33.3333%;text-align:left'> Cell1</th>
<th style='width: 33.3333%;text-align:left'> Cell2</th>
<th style='text-align:left'> Cell3</th>
</tr>
<tr>
<td style='width: 33.3333%;text-align:left'> Cell4</td>
<td style='width: 33.3333%;text-align:left'> Cell5</td>
<td style='text-align:left'> Cell6</td>
</tr>
<tr>
<th style='text-align:left'>Cell7</th>
<th style='text-align:left;'colspan='2'>Cell8</th>
</tr>
<tr>
<td style='text-align:left'>Cell9</td>
<td style='text-align:left'colspan='2'>Cell10</td>
</tr>
</table></body>"

 

Categories:
I have the same question (0)
  • Verified answer
    v-chengfen-msft Profile Picture
    Microsoft Employee on at

    HI @Corissandageri ,

    The reason for this problem is

    1.There are some limitations of PDF function.

    [colspan] may be invalid

    vchengfenmsft_0-1666605682012.png

     

    Maybe you could use Flow to achieve sending email with PDF(HTML Table)

    There are two flows:

    First:

    Note: [This method will be simpler, but this is charged]

    You need to create [encodian] connector, you need to get API KEY

    API Key Archives — Encodian

    vchengfenmsft_1-1666605682019.png

    vchengfenmsft_2-1666605682027.png

    vchengfenmsft_3-1666605682031.png

     

    Here is result:

     

    vchengfenmsft_4-1666605682045.png

     

    Second:

    This method is free, but some characters cannot be recognized

    vchengfenmsft_5-1666605682049.png

    vchengfenmsft_6-1666605682056.png

    vchengfenmsft_9-1666605773540.png

     

    Here is result :

    vchengfenmsft_8-1666605682066.png

     

    Here is a link for your reference:

    Power Automate: Create A PDF File From HTML [No Premium] (zeitgeistcode.com)

    Best Regards

    Cheng Feng

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard