Skip to main content

Notifications

Power Apps - Building 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>"

 

  • Verified answer
    Re: New PDF function, trouble with colspan

    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard