web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Upright table

(0) ShareShare
ReportReport
Posted on by 353

Hello,

I have a flow to generate a table and generate a pdf, but it is generated to the side and, as there are several fields or values, they do not fit on the print sheet to the side. How can I make the table vertical and not horizontal?
The function I use is:

 

Concat('<!DOCTYPE html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Tabla</title><meta name="author" content="xxx"/></head><body><style>Table {font-family: Arial, Helvetica, sans-serif; background-color: #EEEEEE; border-collapse: collapse; width: 100%;} Table td, Table th {border: 1px solid #ddd; padding: 3px 3px;} Table th {font-size: 15px; font-weight: bold; padding-top: 12px; padding-bottom: 12px; text-align: left; background-color: #1C6EA4; color: white;}</style><h1><a name="bookmark0">Registros SAG</a></h1><p>Datos</p><p></p>',body('Crear_tabla_HTML'),body('Crear_tabla_HTML_2'),body('Crear_tabla_HTML_3'),body('Crear_tabla_HTML_4'),'</body></html>')

 

Thanks¡

Categories:
  • srduval Profile Picture
    1,796 Moderator on at

    I think you are saying instead of 

    Header1 Header2 Header3
    data1 data1 data1

     

    you want

    Header1 Data1
    header 2 data1
    Header3 Data1

     

    If that's the case you can't use any automatically generated table, you have to create it yourself. Create a string variable with the HTML for a table "<table>" then create an apply to each for the source array then for each item returned you'll have to do an append to string variable with a <tr><td>Header</td><td>Data value</td></tr> 

     

    then outside the loop you'll need to close the table tag </table>

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard