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 Platform Community / Forums / Power Apps / Formating HTML code in...
Power Apps
Unanswered

Formating HTML code in powerapps in order to create printable pdf

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

Is there any nice, easy-going way to create pdfs from custom powerapps forms or coding by hand html code and converting it is the only way?

 

I mean, I need to make good looking PDF raport from submited forms. I started to type it in HTML code but it doesnt look very profesional. And I dont know why but HTML code in powerapps doesnt act always like it should, for example I need to make page break beetwen two tables, I tried following lines of code:

<p style="page-break-before: always">

<div style="page-break-after: always"></div>

<div style='page-break-after:always;'>&nbsp;</div>

but none of them worked. It's really frustrating. The view of typed code in powerapps is also diffrent than in converted pdf file, so i need to run flow after every change to see real looking pdf.

 

Thank you for all your help

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share a bit more about your scenario?

    Do you want to use the page-break-before and page-break-after css style within the HTML Text control?

    Further, do you want to convert a Edit form data into a PDF file within PowerApps?

     

    Based on the needs that you mentioned, I have made a test on my side, and the issue is confirmed on my side. The page-break-before and page-break-after css style within the HTML Text control is not supported in PowerApps currently.

    If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

     

    If you want to convert a Edit form data into a PDF file within PowerApps, I afraid that there is no direct way to achieve your needs in PowerApps. As an alternative solution, I think the combination of PowerApps and MS Flow could achieve your needs.

    Please check and see if the following video resource would help in your scenario:

    https://www.youtube.com/watch?v=IhE0-HumNNo&feature=youtu.be

    https://www.youtube.com/watch?v=bfXV_GXc_JM

     

    Best regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard