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 / HTML Text Missing from...
Power Apps
Unanswered

HTML Text Missing from PDF()

(0) ShareShare
ReportReport
Posted on by 63

Hello,

    I am attempting to create a PDF report from a screen in my Power app. To do this I have a couple items. The data I am exporting is located in the container Project_Summary_Report. In this container I have a sub container named Summary_Timeline_Container which has a gallery inside of it. This gallery has a HTML Text field with the following code I "borrowed" from a youtube video:

"<div
 style='"&
 "text-align:center;"&
 "position: absolute;"&
 "left: 50%;"& 
 "top: 50%;"&
 "transform: translate(-50%, -50%) rotate(270deg);"&
"'>"&

ThisItem.Milestone_desc

&"</div>"

To Print my report I have an icon on the same screen header with the following vaule.

Set(
 summary_doc,
 PDF(
 Project_Summary_Report,
 {
 Orientation: "Landscape",
 Size: "Letter",
 ExpandContainers: true
 }
 )
)

Finally, to download the file I have an attachment field with the flowing items: {name:Report_Type_Combo.Selected.Value&" report.pdf",Value:summary_doc}. 

The end result is I get my document as expected including other HTML fields except for the HTML fields listed above. If I use the Print() function, I have all HTML text, but I also have my control headed. What would your suggestions be? I am hesitant to use Print() as it takes a few seconds to load all the data.

 

Screenshot of screen:

gizmobrat_0-1697749416249.png

Screenshot of PDF:

gizmobrat_1-1697749471660.png

 

Categories:
  • Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    @gizmobrat 

     

    So sorry for your troubles.

     

    One, I am definitely not sure why the HTML isn't showing up. That is... a pain.

    One thing I would like to suggest, I know you don't like using Print but it is a good way to do it. When press the Print button, set the things you do NOT want to invisible, before you actually use the Print command it you should not have the headers etc anymore.


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • gizmobrat Profile Picture
    63 on at

    @FLMike,

    That could be an option. However, doing that would necessitate me redoing the entire screen. As I have the container, I want to print set to 11x8.5 so even if I hide the control options, the page will still be formatted wrong. Do you have an easy way to adjust this? As my report is already build and I don't have a good way to reduce the size and still fit the required data.

    gizmobrat.

  • Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    Hi @gizmobrat 

     

    I thought you were simply trying to print the PDF? this is the first mention of formatting issues. You mentioned you would see these, so i gave an option to not see them.

     

    So I am confused how does this impact your report. Are you saying that the PDF size changes by hiding these?


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • gizmobrat Profile Picture
    63 on at

    @FLMike,

        The container that I am attempting to print is the size of 8.5x11. This results in the Print() function returning a page that is to large to print.

    -gizmobrat

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard