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 / Behaviour differs betw...
Power Apps
Unanswered

Behaviour differs between app preview and published version

(0) ShareShare
ReportReport
Posted on by 4

I have designed an app that contains a Gallery (Main Gallery) that increases in number of rows based on the selection in another gallery (Selection Gallery) . When viewing the app, this means the operator can just scroll down on the main gallery to see the full contents. No problem here.

 

I have a button that uses the Print() function to generate a PDF of the current page showing both galleries. The main gallery sometimes has more rows than can fit on the page so I set the Main Gallery height and Screen height to extend based on how many rows are in the Main gallery using the below functions.

 

Screen1.Height - If(Self.Printing, ChecksGallery.TemplateHeight*CountRows(ChecksGallery.AllItems)+113, Max(App.Height, App.MinScreenHeight))

MainGallery.Height - If(Parent.Printing, Self.TemplateHeight*CountRows(ChecksGallery.AllItems),639)

 

When viewing in the preview section of the app it works perfectly and generates an A4 pdf with the app extended and showing all the rows on the main gallery. But when using the published version of the app it doesn't amend the screen height and so the resulting pdf just has the landscape app scaled down to fit on the portrait A4 page.

 

Can anyone advise on whether this is a bug or if there is functionality that could get around this feature?

Categories:
  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    Did you make sure that you Published the app after making your last set of changes?  Saving the app will only show the changes in the editor. To see them in the final version they need to be Published.  

  • WillCatt Profile Picture
    4 on at

    Yes I have saved and published many times to confirm and with other attempts to fix the issue.

  • WillCatt Profile Picture
    4 on at

    Yes I have saved and published many times to confirm and with other attempts to fix the issue.

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard