cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Formatting HTML to PDF

 

Hello, I would like to have better formatting when I export my PowerApps form to a PDF file using a Flow. Is there a way to insert line breaks?

 

I have tried using HTML in the PowerApps input field, and it works, but I cant expect the users to insert their own HTML when filling the form.

 

PowerApps example:

image.png

PDF Output:

image.png

 

PowerApps example with HTML:

image.png

 

PDF output with HTML:

image.png

3 ACCEPTED SOLUTIONS

Accepted Solutions
Super User III
Super User III

Hi @Kyle99 ,

Put the name of the control instead of UserText below

 

Replace(UserText,Char(10),"<br>")

 

 
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Substitute(UserText,Char(10),"<br>")

This ended up working for me, I had never seen these functions before. Thanks for your help!

View solution in original post

sorry not on a PC. 
Substitute is the correct syntax.

You also accepted your own post as the solution.

View solution in original post

4 REPLIES 4
Super User III
Super User III

Hi @Kyle99 ,

Put the name of the control instead of UserText below

 

Replace(UserText,Char(10),"<br>")

 

 
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Anonymous
Not applicable

@Kyle99We can add break lines using MS flow aka powerautomate by passing the arguments from PowerApps.

 

Pls accept this as a solution if this addresses your problem. Don't forget to give a kudos.

Substitute(UserText,Char(10),"<br>")

This ended up working for me, I had never seen these functions before. Thanks for your help!

View solution in original post

sorry not on a PC. 
Substitute is the correct syntax.

You also accepted your own post as the solution.

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (17,897)