Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

How to use print function to print the screen with some gallery only

(0) ShareShare
ReportReport
Posted on by

Working on power app for teams.

 

On my screen around 4 gallery connected to different data source but filter by the some textbox on the top of the screen.

 

I want to print the screen with 3 gallery only, rest all the gallery and controls to be hidden at the time of print.

 

Is it possible?.

 

Please advise

 

  • Verified answer
    CU05080617-0 Profile Picture
    136 on at
    Re: How to use print function to print the screen with some gallery only

    Hi Mia.

    How do you create the pdf? I think you could achieve this again on the button you create the pdf. Make all not visisble with a variable when button is pressed. If this does not work please provide with more information. Thank you.

    Best regards.
    Nick

  • MIA27 Profile Picture
    on at
    Re: How to use print function to print the screen with some gallery only

    Dear Nick, 

    Thank you. 

    Have not applied, will working on the test.

     

    One related question that user may ask, the same method hiding is possible while creating the pdf of the screen.

     

    Please guide in the mean time. so that both the test can be done and will update you accordingly.

     

    Regards

     

  • CU05080617-0 Profile Picture
    136 on at
    Re: How to use print function to print the screen with some gallery only

    Hello @MIA27 .

    How about to add a variable to make them not visible while printing (on visible property on each control and your gallery that you want them to be hidden) ?

    On printing button I tried this:

    UpdateContext({varVisible: false});
    Print();
    UpdateContext({varVisible: true});


    Hope this helps.
    Nick



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!

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,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard