Skip to main content

Notifications

Community site session details

Community site session details

Session Id : y8EgXEDw9xLcK5ckP3KhVn
Power Apps - Building Power Apps
Unanswered

Issue with PDF Function expandcontainers

Like (3) ShareShare
ReportReport
Posted on 29 May 2023 23:59:53 by 384

Hi,

 

I have created a canvas based application using containers (Containers inside a Container, not used form) and added pdf function to generate pdf document and it was working fine and expanding containers and creating multiple pages without loosing any data. But all off sudden expandcontainers is not working and application is generating file only for active screen.

Removed pdf function and readded still it's not working. 

 

NOTE: It's working fine in Edit mode but not in play mode.

I am not sure how to resolve it, any help would be greatly appreciated.

 

 

  • Community Power Platform Member Profile Picture
    on 30 Aug 2023 at 10:47:23
    Re: Issue with PDF Function expandcontainers

    I had this issue as well, followed the solution from this post and it was resolved: 
    https://powerusers.microsoft.com/t5/Building-Power-Apps/Pdf-function-not-getting-whole-scrollable-screen-when-published/m-p/2199274#M550902 
    tl:dr: put all the controls you need in your PDF into a container. 

  • Matt2023 Profile Picture
    10 on 28 Aug 2023 at 04:32:52
    Re: Issue with PDF Function expandcontainers

    I have same issue. Any resolution?

  • PDSmith Profile Picture
    8 on 22 Aug 2023 at 12:58:11
    Re: Issue with PDF Function expandcontainers

    I am also having that same issue. 

  • EduardNunes Profile Picture
    4 on 21 Aug 2023 at 16:03:59
    Re: Issue with PDF Function expandcontainers

    I have the exact same issue, any updates on how to resolve it?

  • Bearded Profile Picture
    2 on 31 Jul 2023 at 12:33:05
    Re: Issue with PDF Function expandcontainers

    Happened on this exact same issue this morning. ExpandContainers:true works like a champ in Dev Mode preview, but once published, no more expanded containers, only a PDF of the active screen. My code is below and is working exactly as expected in preview. I get an email with a full multipage PDF. once I publish and try, i get an email with a single page "screen grab" PDF......I get its experimental but.....this seems pretty critical to success:)

     

    Office365Outlook.SendEmailV2(User().Email,"Travel Form PDF","PDF From PowerApps",{Attachments:Table({Name:"TravelItinerary.pdf",ContentBytes:PDF(NewFormScreen,{ExpandContainers:true})})})

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 78 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 42

#3
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

Overall leaderboard