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 / Save PDF With Expandab...
Power Apps
Unanswered

Save PDF With Expandable Container Replicating Comment Matrix (Excel Style)

(0) ShareShare
ReportReport
Posted on by 185

Hello all,

 

I saw nothing in the posts that might help with this scenario.  I have a Power App screen that displays an Excel-like (columns and rows) experience for saving as an output report.  I placed the header and flexible height gallery inside of a container and added the control to save so that the page design also saves with the report header.  I'm having problems with the flexible height gallery expanding to show all of the rows (cuts off around where the flexible height gallery ends), and it doesn't continue to the next page or continue to show the cut-off row content).  I've found several online examples doing similar things with vertical gallery solutions, but haven't found anything for when someone is working with a flexible height gallery.  Each row has different heights (some very significantly depending on comments that were added) making the flexible height gallery a good option.  I'm not sure another option exists.  Anyway, I'm hoping someone might have tried to do something similar and found a solution.  Below is the code I've used for the OnSelect property of the save button with Container1 as the content of the screen (minus the save button and back button).  

 

OnSelect: SavePDFtoSharePoint.Run({file:{name:lblHeaderCommentMatrix_4.Text&".pdf", contentBytes: PDF(Container1,{Size:PaperSize.A4, Margin: "0pt 0pt 0pt 0pt", ExpandContainers:true})}});Notify("Successfully Exported PDF File", NotificationType.Success, 5000)

Categories:
I have the same question (0)

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard