Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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}))
 
 
  • Suggested answer
    StephenGW Profile Picture
    583 on at
    PDF Expanding Container
    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.
  • StephenGW Profile Picture
    583 on at
    PDF Expanding Container
    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
  • StephenGW Profile Picture
    583 on at
    PDF Expanding Container
    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?
  • Suggested answer
    MooseBot88 Profile Picture
    144 on at
    PDF Expanding Container
    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
    PDF Expanding Container
    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.
  • MooseBot88 Profile Picture
    144 on at
    PDF Expanding Container
    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?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard