cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gilchristg2
Frequent Visitor

PDF table not working with colspan

I'm creating a Power App that converts a Html text table into a PDF using Power Automate. The table's format relies heavily on the colspan tag, but when it's added it causes the table to be blank when it's converted to PDF. 

 

Is there a way to use colspan that won't interfere with the table being converted?

3 REPLIES 3
Erlandcrf
Microsoft
Microsoft

Hello @gilchristg2 

 

Could you share how does your HTML code design looks like?

I think this could be more related on how all the components are getting set, please take a look at this other community post that might give a good idea on the issue you are having: https://powerusers.microsoft.com/t5/General-Power-Automate/html-to-pdf-conversion-issue/td-p/207088

 

I hope this can help you in this behavior.

Thanks.

"<!DOCTYPE html>
<html>
<head>
<style>
body{margin-right: 20px;
margin-left: 20px;
margin-top: 30px;
margin-bottom:30px
}

Center{text-align:center;}
Right{text-align:right;}
Left{text-align:left;}

table, td, th {
border: .5px solid black;
}

 

</style>
</head>
<body>
<Center>Visitation</Center>
<Center><b>REQUEST FOR ACTION</b></Center>

<table>
<tr>
<th style='background-color: lightGray''Colspan='3''><b>SECTION 1: TYPE OF ACTION</b></th>
</tr>
<tr>
<td>Type of Request
<br>
</td>

</tr>
<tr>
<td style='background-color: lightGray'><center><b>SECTION 2: CANDIDATE/EMPLOYEE INFORMATION</b></center></td>
</tr>
<tr>
<td>

</td>
</tr>
<tr>
<td style='background-color: lightGray'><center><b>SECTION 3: POSITION INFORMATION</b></center></td>
</tr>
<tr>
<td ></td>
</tr>
<tr>
<td style='background-color: lightGray'><center><b>SECTION 4: CURRENT/PREVIOUS NATIONAL SECURITY CLEARANCE</b></center></td>
</tr>
<tr>
<td style='background-color: lightGray'><center><b>SECTION 5: TYPE OF CLEARANCE/CERTIFICATION REQUESTED</b></center>
</tr>
<tr>
<td style='background-color: lightGray'><center><b>SECTION 6: AUTHORIZED REQUESTOR INFORMATION</b></center>
</tr>

</table>

</body>
</html>"

 

image.png

Erlandcrf
Microsoft
Microsoft

Hello @gilchristg2 

For this incident I was doing some test with the HTML you paste and I was able to get it convert to the PDF.

However, think the best next step will be to enter a support ticket to better troubleshoot this issue and get the right assistance in order to resolve this issue.

Thanks.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,098)