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 docoument(Expand C...
Power Apps
Unanswered

pdf docoument(Expand Containers not working)

(2) ShareShare
ReportReport
Posted on by

Hi All,

 

I have a Gallery in my powerapps , I am trying to generate the PDF with all the items of gallery , I have added Set(Varpdf,PDF(Screen7,{ExpandContainers:true})) , but while generating the PDF only those items are generated which are available in the screen .

 

Any help will be appreciated

 

Thank You

Categories:
  • FouadMd Profile Picture
    4 on at

    Hi, 

    If you have fixed the issue please give me the way because I 've the same problem... 

  • Lilu125 Profile Picture
    4 on at

    Any update on this? I’m having the same issue. 

  • RafaFurquim Profile Picture
    16 on at

    For me "{ExpandContainers:true}" works in edit development when testing but not in production.

  • Tobias_TNG Profile Picture
    4 on at

    I have the same problem

  • GreenJaguar Profile Picture
    178 on at

    A bit more detail on my side. I have a filter to set up the content of the container. If the container is empty, no error comes around. 

    While I understand that nobody will want to generate a report on an empty container, I wanted to share this to add to the KB

  • angee Profile Picture
    10 on at

    I tried the {ExpandContainers:true}" control, it only works on laptop but not on mobile device. In mobile device, i only see first page being generated. Anyone has tried this before?

     

  • kurtG Profile Picture
    18 on at

    I'm having the same issue

  • tg42q15f Profile Picture
    30 on at

    Hello,

    Did you try to add the Screen inside the container and then use the ExpandContainer function in the container instead Screen?

    I have a responsive App (Tablet and Mobile) that uses PDF() and it works for any device and multiple pages.

    The only issue is that when generate the PDF from mobile device the size of PDF will keep the size of the screen (Width), but it brings all the fields/data from other pages.

  • kurtG Profile Picture
    18 on at

    My development of the PDF() works when on make.powerapps.com.  I'm able to expand a dynamic gallery view, and in my test case will print 7 pages of the items in the gallery view.  All 100% working as expected in Dev (make.powerapps.com).  Then I publish the app and run it on apps.powerapps.com.  It prints less than a single page, and is the non expanded view of the gallery view, so not a full page based on the size of the gallery view.  Yes I use the ExpandContainer flag and it works, I also resize the galleryview so that all the content can be shown when expanded.  Again same code works 100% fine in make.powerapps.com and fails to ExpandContainer in apps.powerapps.com

  • Heath616 Profile Picture
    27 on at

    @RezaDorrani I am having the same issue. Do you have any insight into this? Is there someone that can take a look at this?

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 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard