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>"
HI @Corissandageri ,
The reason for this problem is
1.There are some limitations of PDF function.
[colspan] may be invalid
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
Here is result:
Second:
This method is free, but some characters cannot be recognized
Here is result :
Here is a link for your reference:
Power Automate: Create A PDF File From HTML [No Premium] (zeitgeistcode.com)
Best Regards
Cheng Feng