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 / PDF Expanding Container
Power Apps
Suggested Answer

PDF Expanding Container

(1) ShareShare
ReportReport
Posted on by 583
I am trying to make a PDF with an expanded container which contains a gallery. I need to PDF the whole screen as there are some labels and other stuff I need included in the PDF and expand the container. I have it setup to navigate to the PDF screen and the OnVisible will create the PDF using the formula below. Then after 2 seconds a text label becomes visible that when clicked will export the PDF to SP. This all works other than the container is not expanding. Can anybody help with how to get the container to expand? Happy to provide more info if needed.
 
Set(myPDF,PDF(ScrapReportHidden,{ExpandContainers:true,Orientation:PaperOrientation.Landscape}))
 
 
Categories:
I have the same question (0)
  • MooseBot88 Profile Picture
    168 on at
    Is this a vertical container that you reach the scroll limit or is it set up for bits to expand in terms of collapsible sections?
     
    Can you post a screenshot?
  • StephenGW Profile Picture
    583 on at
    Moose,
     
    It is a vertical container. The gallery inside is scrolling and I need the PDF to show everything in the gallery. What do you want to see in the screenshot? I would have to redact quite a bit to share. I can try to explain or show you some of the code behind it if I know what you're looking for.
  • Suggested answer
    MooseBot88 Profile Picture
    168 on at
    Ahh i see, it will convert anything in the vertical container, so labels or text or images and it will do that regardless if you pass the scroll limit of the app. Though it will not do everything in the gallery....
     
    You could try use a data table instead with the same information if that would work in the format your after?
  • StephenGW Profile Picture
    583 on at
    Moose,
     
    I switched the gallery for a DataTable which is new to me. I made it and put it inside the container. This still did not expand. Seems like I am making a simple mistake somewhere to not get the expansion. I made a plain container so it would not automatically arrange the labels and stuff inside. Should I move back to a vertical container only containing the datatable?
  • StephenGW Profile Picture
    583 on at
    Anybody here got any ideas why my container wont expand? Should I be using a vertical container instead of just a plain container? I basically made the whole screen a container and put everything inside that but it wont expand the data table either. Should I just put the data table in the container and everything else outside the container? I'm lost when it comes to making PDF and needing the container to expand. Thanks
  • Suggested answer
    StephenGW Profile Picture
    583 on at
    I think I figured this out. The problem was having everything in the container. Data table would not go in the container so I made a gallery and put only that in the container. Then this seems to work now.

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
Vish WR Profile Picture

Vish WR 633

#2
11manish Profile Picture

11manish 588

#3
Valantis Profile Picture

Valantis 457

Last 30 days Overall leaderboard