cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mattthew
Advocate I
Advocate I

HTML Text to Flow PDF Landscape?

Hello, 

Any idea how to convert a Powerapp HTML Text to PDF in Landscape?  

 

Thanks!

3 REPLIES 3
v-yuxima-msft
Community Support
Community Support

Hi @mattthew ,

 

I think you have already covert your html to PDF,right?

https://powerusers.microsoft.com/t5/General-Discussion/html-text-to-pdf-formatting-issue-with-table-...

And now is your problem stuck in Landscape view,right?

https://powerusers.microsoft.com/t5/General-Flow-Discussion/Issues-with-flow-converting-HTML-to-PDF-...

 

So what is your html? Is it as your previous case shows? And how do you covert it to PDF? Could you please show your flow configuration?

 

Best Regards.

Yumia

 

Hi @v-yuxima-msft 

 

The flow was the same method as you had linked.  We would like the view to be landscape since the output is not viewer friendly.    Thanks!

 

"<!DOCTYPE html>
<head>
<style>
table, th, td {
    border: 1px solid black;
}
</style>
</head>
<body>
<h2> Planning Phase Hazard Analysis (PPHA)</h2>
<h4>Work Order: " & Dropdown3.Selected.Value &"</h4>
<p>Please review below tasks for the work order as assigned </p>
<table style='width:100%'>
  <tr>
    <th>Company</th>
    <th>Team</th> 
    <th>Job Site Participants</th>
    <th>Created By</th>
    <th>Equipment Worked On</th>
    <th>Created On</th>
  </tr> 
"& Concat(Filter(TCD, Title= Dropdown3.Selected.Value),
        "<tr><td>" & Company & " </td>
        <td>" & Name_x0020_Participants & " </td>
        <td>" & Job_x0020_Site_x0020_Participant & " </td>
        <td>" & Author.DisplayName & " </td>
        <td>" & Equipment_x0020_Worked_x0020_On & " </td>
        <td>" & Created & " </td>
        </tr>") &
    "
</table> <br> 
<table style width='100%'>
     <tr> 
         <th> ID </th>     
         <th> Task Selection </th>
         <th> Consequence </th> 
         <th> Other Documents Required</th>
         <th> Hazards</th> 
         <th> Mitigations </th> 
         <th> Approval Requirements</th>
         <th> CCP Review Team</th>
         <th> Additional Comments</th>
     </tr>
     "& Concat(Filter(Tasks, WorkOrder= Dropdown3.Selected.Value),
             "<tr>
              <td>" & Record & " </td>
              <td>" & Title & "</td>
              <td>" & Consequence & " </td>
              <td>" & Permits_x002f_Documents & " </td> 
              <td>" & Hazards & " </td>
              <td>" & Mitigations & " </td>
              <td>" & Approval_x0020_Requirements&" </td> 
              <td>" & CCP_x0020_Review_x0020_Team &" </td>
              <td>" & Additional_x0020_Comments &" </td>
              </tr>")  &
" 
</table><br> 
<table style width='100%'><tr>

<th>Comments</th> 
</tr> <tr>
" & Concat(Filter(TCD, Title=Dropdown3.Selected.Value),
"<td height='90'>"
 & General_x0020_Comments & " </td>  "
,"<tr></tr>")
&
"</table>
</body>
</html>"

 

Capturepdf.PNG

 

Hi @mattthew ,

 

Do you want all your columns to show in one row?

I test on my side, if you put all columns show in onw row, it will very small.

And currently I  don't find one valiable way  to show the appearence frendly, one of my teamates suggest you can only change or edit the column's width by mannul in your code.

 

Best Regards.

Yumia 

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,072)