Skip to main content

Notifications

Community site session details

Community site session details

Session Id : OXZbLHhqKhrhkqrifyKCtI
Power Apps - Building Power Apps
Answered

New PDF function, trouble with colspan

Like (0) ShareShare
ReportReport
Posted on 24 Oct 2022 00:44:35 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
    v-chengfen-msft Profile Picture
    on 24 Oct 2022 at 10:03:31
    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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

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

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,369 Most Valuable Professional

Leaderboard
Loading started
Loading complete