cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mattthew
Level: Powered On

HTML Text to Flow PDF Landscape?

Hello, 

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

 

Thanks!

3 REPLIES 3
Community Support Team
Community Support Team

Re: HTML Text to Flow PDF Landscape?

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

 

mattthew
Level: Powered On

Re: HTML Text to Flow PDF Landscape?

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

 

Community Support Team
Community Support Team

Re: HTML Text to Flow PDF Landscape?

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,275)