web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Printing multiple item...
Power Apps
Unanswered

Printing multiple items from a power app gallery to a form 1 at a time

(0) ShareShare
ReportReport
Posted on by 14

Hey there,

 

I am trying to create an app that allows printing multiple items from a gallery, the way that the printing currently works is that the user clicks on a checkbox of the item they wish to print and the print function then navigate to the screen that needs to be printed and navigates back once the print action is completed, the problem i am facing is that i need each item to be printed on a seperate sheet (as it will be working on a badge printer), i have screen shots of the app included, I am not sure if there is a way to implement what i am trying to do so any help would be greatly appreciated 🙂 

 

Categories:
I have the same question (0)
  • Verified answer
    Shaheer Ahmad Profile Picture
    2,194 Moderator on at

    To achieve printing multiple items from a gallery to separate sheets using a badge printer in your Power App, you can follow these steps:

    1. In your gallery, make sure you have a checkbox control for each item that the user can select for printing. Bind the Checkbox control to a Boolean variable (e.g., PrintSelected) in the Items property of the gallery.

    2. Create a button or an action that the user will click to initiate the printing process.

    3. In the button's OnSelect property, use the ForAll function to iterate through the gallery items and check which items are selected for printing. For each selected item, navigate to the screen that needs to be printed and handle the printing process.

      Here's an example formula for the button's OnSelect property:

     

    ForAll(
     Filter(Gallery1.AllItems, PrintSelected),
     Navigate(PrintScreen, ScreenTransition.None);
     // Handle the printing process for the current item in PrintScreen
     // Once printing is completed, navigate back to the previous screen
     Back()
    )

     

    1. In the PrintScreen, design the layout as needed for each item to be printed on a separate sheet. You can bind the controls in the PrintScreen to the relevant data for the current item.

    2. Implement the printing functionality in the PrintScreen based on your badge printer requirements. This can vary depending on the printer and its supported methods (e.g., using a specific printer API, generating a print-ready document, etc.). Consult the documentation or resources provided by the badge printer manufacturer for guidance on how to print using their device.

      Note: The printing process may involve specific JavaScript code or plugins. You can use the Power Apps Components Framework (PCF) to extend the capabilities of your Power App and integrate with external plugins or libraries if needed.

    3. Once the printing is completed for an item, use the Back() function to navigate back to the previous screen where the gallery is located.

    By implementing these steps, you can enable the printing of multiple selected items from the gallery to separate sheets using your badge printer in your Power App. Adjust the printing logic and layout design in the PrintScreen based on the requirements of your specific badge printer and desired output format.

  • AllanHartley Profile Picture
    14 on at

    Hi,

     

    Apologies for the silly question i am asking but do i declare the boolean on app start (Var printSelection: Boolean) or is this something i need to call on check or on uncheck in the checkboxes i have ?

     

    Best regards

  • Community Power Platform Member Profile Picture
    on at

    Hi,

    I see this post is from last year, it has proven to be useful! I have a similar need to print multiple individual items from the gallery on a separate screen.

    I have a checkbox set on my gallery and a screen layout as needed for my Print Screen with relevant fields i want to populate. I am just printing to a laser printer so should be straightforward forward but the issue I have is when I navigate to the print screen it does not allow enough time for the contents of the screen to be drawn and populate the print screen fields as needed.

    Instead, it prints a portion of the gallery from the gallery screen.

    Is there a way to overcome this?

    Thanks!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard