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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,959)